Class: V1::Pacbio::RequestResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::Pacbio::RequestResource
- Includes:
- Shared::SourceIdentifierFilterable
- Defined in:
- app/resources/v1/pacbio/request_resource.rb
Overview
Provides a JSON:API representation of Pacbio::Request.
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. This resource represents a Pacbio Request and can return all requests, a single request or multiple requests along with their relationships.
Filters:
-
sample_name
-
source_identifier
-
species
Primary relationships:
-
well WellResource
-
plate PlateResource
-
tube TubeResource
Relationship trees:
-
well.plate
-
plate.wells
-
tube.requests
Direct Known Subclasses
Instance Attribute Summary collapse
-
#barcode ⇒ String
The barcode of the sample.
-
#cost_code ⇒ String
The cost code.
-
#created_at ⇒ String
The creation time of the request.
-
#estimate_of_gb_required ⇒ Float
The estimated gigabytes required.
-
#external_study_id ⇒ String
The external study ID.
-
#library_type ⇒ String
The type of the library.
-
#number_of_smrt_cells ⇒ Integer
The number of SMRT cells.
-
#sample_name ⇒ String
The name of the sample.
-
#sample_species ⇒ String
The species of the sample.
-
#source_identifier ⇒ String
The source identifier of the request.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#barcode ⇒ String
Returns the barcode of the sample.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#cost_code ⇒ String
Returns the cost code.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#created_at ⇒ String
Returns the creation time of the request.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#estimate_of_gb_required ⇒ Float
Returns the estimated gigabytes required.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#external_study_id ⇒ String
Returns the external study ID.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#library_type ⇒ String
Returns the type of the library.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#number_of_smrt_cells ⇒ Integer
Returns the number of SMRT cells.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#sample_name ⇒ String
Returns the name of the sample.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#sample_species ⇒ String
Returns the species of the sample.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
#source_identifier ⇒ String
Returns the source identifier of the request.
69 70 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 69 attributes(*::Pacbio.request_attributes, :sample_name, :barcode, :sample_species, :created_at, :source_identifier) |
Class Method Details
.default_sort ⇒ Object
97 98 99 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 97 def self.default_sort [{ field: 'created_at', direction: :desc }] end |
.records_for_populate(*_args) ⇒ Object
113 114 115 |
# File 'app/resources/v1/pacbio/request_resource.rb', line 113 def self.records_for_populate(*_args) super.preload(:sample, :tube, well: :plate) end |