Class: Api::V2::TubeResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::TubeResource
- Defined in:
- app/resources/api/v2/tube_resource.rb
Overview
Provides a JSON API representation of receptacle See: jsonapi-resources.com/ for JSONAPI::Resource documentation
Instance Method Summary collapse
-
#labware_barcode ⇒ Object
Custom methods These shouldn't be used for business logic, and a more about I/O and isolating implementation details.
Methods inherited from BaseResource
apply_includes, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations, updatable_fields
Instance Method Details
#labware_barcode ⇒ Object
Custom methods These shouldn't be used for business logic, and a more about I/O and isolating implementation details.
52 53 54 55 56 57 58 |
# File 'app/resources/api/v2/tube_resource.rb', line 52 def { 'ean13_barcode' => _model., 'machine_barcode' => _model., 'human_barcode' => _model. } end |