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
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
The name of the sample.
-
#source_identifier ⇒ String
The source identifier of the request.
Class Method Summary collapse
Instance Attribute Details
#cost_code ⇒ String
Returns the cost code associated with the request.
36 |
# File 'app/resources/v1/ont/request_resource.rb', line 36 attributes(*::Ont.request_attributes, :sample_name, :source_identifier, :created_at) |
#created_at ⇒ String
Returns the creation timestamp of the request.
36 |
# File 'app/resources/v1/ont/request_resource.rb', line 36 attributes(*::Ont.request_attributes, :sample_name, :source_identifier, :created_at) |
#data_type ⇒ String
Returns the type of the data.
36 |
# File 'app/resources/v1/ont/request_resource.rb', line 36 attributes(*::Ont.request_attributes, :sample_name, :source_identifier, :created_at) |
#external_study_id ⇒ String
Returns the external study identifier.
36 |
# File 'app/resources/v1/ont/request_resource.rb', line 36 attributes(*::Ont.request_attributes, :sample_name, :source_identifier, :created_at) |
#library_type ⇒ String
Returns the type of the library.
36 |
# File 'app/resources/v1/ont/request_resource.rb', line 36 attributes(*::Ont.request_attributes, :sample_name, :source_identifier, :created_at) |
#number_of_flowcells ⇒ Integer
Returns the number of flowcells requested.
36 |
# File 'app/resources/v1/ont/request_resource.rb', line 36 attributes(*::Ont.request_attributes, :sample_name, :source_identifier, :created_at) |
#sample_name ⇒ String
Returns the name of the sample.
36 |
# File 'app/resources/v1/ont/request_resource.rb', line 36 attributes(*::Ont.request_attributes, :sample_name, :source_identifier, :created_at) |
#source_identifier ⇒ String
Returns the source identifier of the request.
36 |
# File 'app/resources/v1/ont/request_resource.rb', line 36 attributes(*::Ont.request_attributes, :sample_name, :source_identifier, :created_at) |
Class Method Details
.default_sort ⇒ Object
48 49 50 |
# File 'app/resources/v1/ont/request_resource.rb', line 48 def self.default_sort [{ field: 'created_at', direction: :desc }] end |
.records_for_populate(*_args) ⇒ Object
72 73 74 |
# File 'app/resources/v1/ont/request_resource.rb', line 72 def self.records_for_populate(*_args) super.preload(:library_type, :data_type) end |