Class: V1::Ont::LibraryResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::Ont::LibraryResource
- Defined in:
- app/resources/v1/ont/library_resource.rb
Overview
Access this resource via the /v1/ont/libraries/ endpoint.
Provides a JSON:API representation of Ont::Library.
Primary relationships: * request RequestResource * tube TubeResource * pool PoolResource * tag TagResource * source_plate PlateResource * source_tube TubeResource * source_well WellResource * primary_aliquot AliquotResource * used_aliquots AliquotResource
Instance Attribute Summary collapse
-
#concentration ⇒ Float
The concentration of the library.
-
#created_at ⇒ String
The creation timestamp of the library.
-
#deactivated_at ⇒ String?
The deactivation timestamp of the library, if any.
-
#insert_size ⇒ Integer
The insert size of the library.
-
#kit_barcode ⇒ String
The barcode of the kit used.
-
#state ⇒ String
The state of the library.
-
#volume ⇒ Float
The volume of the library.
Class Method Summary collapse
Instance Attribute Details
#concentration ⇒ Float
Returns the concentration of the library.
55 56 |
# File 'app/resources/v1/ont/library_resource.rb', line 55 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :deactivated_at, :state |
#created_at ⇒ String
Returns the creation timestamp of the library.
55 56 |
# File 'app/resources/v1/ont/library_resource.rb', line 55 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :deactivated_at, :state |
#deactivated_at ⇒ String?
Returns the deactivation timestamp of the library, if any.
55 56 |
# File 'app/resources/v1/ont/library_resource.rb', line 55 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :deactivated_at, :state |
#insert_size ⇒ Integer
Returns the insert size of the library.
55 56 |
# File 'app/resources/v1/ont/library_resource.rb', line 55 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :deactivated_at, :state |
#kit_barcode ⇒ String
Returns the barcode of the kit used.
55 56 |
# File 'app/resources/v1/ont/library_resource.rb', line 55 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :deactivated_at, :state |
#state ⇒ String
Returns the state of the library.
55 56 |
# File 'app/resources/v1/ont/library_resource.rb', line 55 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :deactivated_at, :state |
#volume ⇒ Float
Returns the volume of the library.
55 56 |
# File 'app/resources/v1/ont/library_resource.rb', line 55 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :deactivated_at, :state |
Class Method Details
.records_for_populate(*_args) ⇒ Object
72 73 74 75 76 |
# File 'app/resources/v1/ont/library_resource.rb', line 72 def self.records_for_populate(*_args) super.preload(source_well: :plate, request: :sample, tag: :tag_set, container_material: { container: :barcode }) end |