Module: Api::V2::SharedBehaviour::Labware

Extended by:
ActiveSupport::Concern
Included in:
LabwareResource, PlateResource, TubeResource
Defined in:
app/resources/api/v2/shared_behaviour/labware.rb

Instance Method Summary collapse

Instance Method Details

#labware_barcodeObject

Custom methods These shouldn’t be used for business logic, and are more about I/O and isolating implementation details.



70
71
72
73
74
75
76
# File 'app/resources/api/v2/shared_behaviour/labware.rb', line 70

def labware_barcode
  {
    'ean13_barcode' => _model.ean13_barcode,
    'machine_barcode' => _model.machine_barcode,
    'human_barcode' => _model.human_barcode
  }
end