Class: V1::Ont::RequestResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::Ont::RequestResource
- Includes:
- Shared::SourceIdentifierFilterable
- Defined in:
- app/resources/v1/ont/request_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/requests/
endpoint.
Provides a JSON:API representation of Ont::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.
Instance Attribute Summary collapse
-
#cost_code ⇒ String
The cost code associated with the request.
-
#created_at ⇒ String
readonly
The creation timestamp of the request.
-
#data_type ⇒ String
The type of the data.
-
#external_study_id ⇒ String
The external study identifier.
-
#library_type ⇒ String
The type of the library.
-
#number_of_flowcells ⇒ Integer
The number of flowcells requested.
-
#sample_name ⇒ String
readonly
The name of the sample.
-
#sample_retention_instruction ⇒ String
readonly
The retention instruction for the sample.
-
#source_identifier ⇒ String
readonly
The source identifier of the request.
Class Method Summary collapse
Instance Attribute Details
#cost_code ⇒ String
Returns the cost code associated with the request.
30 |
# File 'app/resources/v1/ont/request_resource.rb', line 30 attributes(*::Ont.request_attributes) |
#created_at ⇒ String (readonly)
Returns the creation timestamp of the request.
40 41 |
# File 'app/resources/v1/ont/request_resource.rb', line 40 attributes :sample_name, :sample_retention_instruction, :source_identifier, :created_at, readonly: true |
#data_type ⇒ String
Returns the type of the data.
30 |
# File 'app/resources/v1/ont/request_resource.rb', line 30 attributes(*::Ont.request_attributes) |
#external_study_id ⇒ String
Returns the external study identifier.
30 |
# File 'app/resources/v1/ont/request_resource.rb', line 30 attributes(*::Ont.request_attributes) |
#library_type ⇒ String
Returns the type of the library.
30 |
# File 'app/resources/v1/ont/request_resource.rb', line 30 attributes(*::Ont.request_attributes) |
#number_of_flowcells ⇒ Integer
Returns the number of flowcells requested.
30 |
# File 'app/resources/v1/ont/request_resource.rb', line 30 attributes(*::Ont.request_attributes) |
#sample_name ⇒ String (readonly)
Returns the name of the sample.
40 41 |
# File 'app/resources/v1/ont/request_resource.rb', line 40 attributes :sample_name, :sample_retention_instruction, :source_identifier, :created_at, readonly: true |
#sample_retention_instruction ⇒ String (readonly)
Returns the retention instruction for the sample.
40 41 |
# File 'app/resources/v1/ont/request_resource.rb', line 40 attributes :sample_name, :sample_retention_instruction, :source_identifier, :created_at, readonly: true |
#source_identifier ⇒ String (readonly)
Returns the source identifier of the request.
40 41 |
# File 'app/resources/v1/ont/request_resource.rb', line 40 attributes :sample_name, :sample_retention_instruction, :source_identifier, :created_at, readonly: true |
Class Method Details
.default_sort ⇒ Object
[View source]
53 54 55 |
# File 'app/resources/v1/ont/request_resource.rb', line 53 def self.default_sort [{ field: 'created_at', direction: :desc }] end |
.records_for_populate(*_args) ⇒ Object
[View source]
77 78 79 |
# File 'app/resources/v1/ont/request_resource.rb', line 77 def self.records_for_populate(*_args) super.preload(:library_type, :data_type) end |