Class: V1::Ont::RunResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::Ont::RunResource
- Defined in:
- app/resources/v1/ont/run_resource.rb
Overview
Access this resource via the /v1/ont/runs/ endpoint.
Provides a JSON:API representation of Ont::Run.
Attributes:
-
experiment_name: The name of the experiment.
-
state: The state of the run.
-
rebasecalling_process: The rebasecalling process of the run.
-
created_at: The creation timestamp of the run.
-
ont_instrument_id: The ID of the associated instrument.
-
flowcell_attributes: The attributes of the flowcells in the run.
Filters:
-
experiment_name: Filter runs by experiment name.
-
state: Filter runs by state.
Primary relationships:
-
instrument InstrumentResource
-
flowcells FlowcellResource
Relationship trees:
-
flowcells.pool
Instance Attribute Summary collapse
-
#created_at ⇒ String
The creation timestamp of the run.
-
#experiment_name ⇒ String
The name of the experiment.
-
#flowcell_attributes ⇒ Array<Hash>
The attributes of the flowcells in the run.
-
#ont_instrument_id ⇒ Integer
The ID of the associated instrument.
-
#rebasecalling_process ⇒ String
The rebasecalling process of the run.
-
#state ⇒ String
The state of the run.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#created_at ⇒ String
Returns the creation timestamp of the run.
87 88 |
# File 'app/resources/v1/ont/run_resource.rb', line 87 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#experiment_name ⇒ String
Returns the name of the experiment.
87 88 |
# File 'app/resources/v1/ont/run_resource.rb', line 87 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#flowcell_attributes ⇒ Array<Hash>
Returns the attributes of the flowcells in the run.
87 88 |
# File 'app/resources/v1/ont/run_resource.rb', line 87 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#ont_instrument_id ⇒ Integer
Returns the ID of the associated instrument.
87 88 |
# File 'app/resources/v1/ont/run_resource.rb', line 87 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#rebasecalling_process ⇒ String
Returns the rebasecalling process of the run.
87 88 |
# File 'app/resources/v1/ont/run_resource.rb', line 87 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#state ⇒ String
Returns the state of the run.
87 88 |
# File 'app/resources/v1/ont/run_resource.rb', line 87 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
Class Method Details
.default_sort ⇒ Object
103 104 105 |
# File 'app/resources/v1/ont/run_resource.rb', line 103 def self.default_sort [{ field: 'created_at', direction: :desc }] end |
Instance Method Details
#fetchable_fields ⇒ Object
120 121 122 |
# File 'app/resources/v1/ont/run_resource.rb', line 120 def fetchable_fields super - [:flowcell_attributes] end |