Class: V1::Ont::PoolResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::Ont::PoolResource
- Defined in:
- app/resources/v1/ont/pool_resource.rb
Overview
This documentation does not yet include a detailed description of what this resource represents.
This documentation does not yet include detailed descriptions for relationships, attributes and filters.
This documentation does not yet include any example usage of the API via cURL or similar.
Access this resource via the /v1/ont/pools/
endpoint.
Provides a JSON:API representation of Ont::Pool.
For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for the service implementation of the JSON:API standard.
Instance Attribute Summary collapse
-
#concentration ⇒ Float
The concentration of the pool.
-
#created_at ⇒ String
The creation timestamp of the pool.
-
#final_library_amount ⇒ Float
readonly
The final amount of the library in the pool.
-
#insert_size ⇒ Integer
The insert size of the pool.
-
#kit_barcode ⇒ String
The barcode of the kit used.
-
#library_attributes ⇒ Array<Hash>
The attributes of the libraries in the pool.
-
#source_identifier ⇒ String
readonly
The source identifier of the pool.
-
#tube_barcode ⇒ String
The barcode of the tube.
-
#updated_at ⇒ String
The last update timestamp of the pool.
-
#volume ⇒ Float
The volume of the pool.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#concentration ⇒ Float
Returns the concentration of the pool.
42 43 |
# File 'app/resources/v1/ont/pool_resource.rb', line 42 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :updated_at, :library_attributes, :tube_barcode |
#created_at ⇒ String
Returns the creation timestamp of the pool.
42 43 |
# File 'app/resources/v1/ont/pool_resource.rb', line 42 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :updated_at, :library_attributes, :tube_barcode |
#final_library_amount ⇒ Float (readonly)
Returns the final amount of the library in the pool.
50 |
# File 'app/resources/v1/ont/pool_resource.rb', line 50 attribute :final_library_amount, readonly: true |
#insert_size ⇒ Integer
Returns the insert size of the pool.
42 43 |
# File 'app/resources/v1/ont/pool_resource.rb', line 42 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :updated_at, :library_attributes, :tube_barcode |
#kit_barcode ⇒ String
Returns the barcode of the kit used.
42 43 |
# File 'app/resources/v1/ont/pool_resource.rb', line 42 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :updated_at, :library_attributes, :tube_barcode |
#library_attributes ⇒ Array<Hash>
Returns the attributes of the libraries in the pool.
42 43 |
# File 'app/resources/v1/ont/pool_resource.rb', line 42 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :updated_at, :library_attributes, :tube_barcode |
#source_identifier ⇒ String (readonly)
Returns the source identifier of the pool.
47 |
# File 'app/resources/v1/ont/pool_resource.rb', line 47 attribute :source_identifier, readonly: true |
#tube_barcode ⇒ String
Returns the barcode of the tube.
42 43 |
# File 'app/resources/v1/ont/pool_resource.rb', line 42 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :updated_at, :library_attributes, :tube_barcode |
#updated_at ⇒ String
Returns the last update timestamp of the pool.
42 43 |
# File 'app/resources/v1/ont/pool_resource.rb', line 42 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :updated_at, :library_attributes, :tube_barcode |
#volume ⇒ Float
Returns the volume of the pool.
42 43 |
# File 'app/resources/v1/ont/pool_resource.rb', line 42 attributes :volume, :kit_barcode, :concentration, :insert_size, :created_at, :updated_at, :library_attributes, :tube_barcode |
Class Method Details
.default_sort ⇒ Object
64 65 66 |
# File 'app/resources/v1/ont/pool_resource.rb', line 64 def self.default_sort [{ field: 'created_at', direction: :desc }] end |
.records_for_populate(*_args) ⇒ Object
83 84 85 |
# File 'app/resources/v1/ont/pool_resource.rb', line 83 def self.records_for_populate(*_args) super.preload(source_wells: :plate) end |
Instance Method Details
#fetchable_fields ⇒ Object
79 80 81 |
# File 'app/resources/v1/ont/pool_resource.rb', line 79 def fetchable_fields super - [:library_attributes] end |