sanger/sequencescape

View on GitHub
app/api/io/lot_type.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# Controls API V1 IO for {::LotType}
class Io::LotType < Core::Io::Base
  set_model_for_input(::LotType)
  set_json_root(:lot_type)

  define_attribute_and_json_mapping(
    '
                                           name => name
                                 template_class => template_class
                            target_purpose.name => qcable_name
                                   printer_type => printer_type
  '
  )
end