app/api/io/receptacle.rb
# frozen_string_literal: true
# Controls API V1 IO for Asset
class Io::Receptacle < Core::Io::Base
set_model_for_input(::Receptacle)
set_json_root(:asset)
set_eager_loading { |model| model }
define_attribute_and_json_mapping(
'
labware.name => name
qc_state => qc_state
aliquots => aliquots
'
)
end