Class: V1::AliquotResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::AliquotResource
- Defined in:
- app/resources/v1/aliquot_resource.rb
Overview
This resource cannot be directly accessed via the /v1/aliquots/ endpoint
Provides a JSON:API representation of Aliquot.
as it is only accessible via the nested route under other resources using includes.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#aliquot_type ⇒ String
The type of the aliquot.
-
#concentration ⇒ Float
The concentration of the aliquot.
-
#insert_size ⇒ Integer
The insert size of the aliquot.
-
#source_id ⇒ Integer
The ID of the source.
-
#source_type ⇒ String
The type of the source.
-
#state ⇒ String
The state of the aliquot.
-
#tag_id ⇒ Integer
The ID of the tag associated with the aliquot.
-
#template_prep_kit_box_barcode ⇒ String
The barcode of the template prep kit box.
-
#used_by_id ⇒ Integer
The ID of the entity that used the aliquot.
-
#used_by_type ⇒ String
The type of the entity that used the aliquot.
-
#volume ⇒ Float
The volume of the aliquot.
Instance Attribute Details
#aliquot_type ⇒ String
Returns the type of the aliquot.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#concentration ⇒ Float
Returns the concentration of the aliquot.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#insert_size ⇒ Integer
Returns the insert size of the aliquot.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#source_id ⇒ Integer
Returns the ID of the source.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#source_type ⇒ String
Returns the type of the source.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#state ⇒ String
Returns the state of the aliquot.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#tag_id ⇒ Integer
Returns the ID of the tag associated with the aliquot.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#template_prep_kit_box_barcode ⇒ String
Returns the barcode of the template prep kit box.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#used_by_id ⇒ Integer
Returns the ID of the entity that used the aliquot.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#used_by_type ⇒ String
Returns the type of the entity that used the aliquot.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |
#volume ⇒ Float
Returns the volume of the aliquot.
36 37 |
# File 'app/resources/v1/aliquot_resource.rb', line 36 attributes :aliquot_type, :source_id, :source_type, :used_by_id, :used_by_type, :state, :volume, :concentration, :insert_size, :template_prep_kit_box_barcode, :tag_id |