Class: Api::V2::QcResultResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::QcResultResource
- Defined in:
- app/resources/api/v2/qc_result_resource.rb
Overview
For more details on JSON:API, see the JSON:API Specifications or check out the JSONAPI::Resources package for Sequencescape's implementation.
Instance Attribute Summary collapse
-
#assay_type ⇒ String
The type of assay used for the QC result (e.g., “PCR”).
-
#assay_version ⇒ String
The version of the assay used for the QC result (e.g., “v1.0”).
-
#asset ⇒ AssetResource
readonly
The Asset associated with the QC result.
-
#created_at ⇒ DateTime
readonly
The timestamp indicating when this metadata entry was created.
-
#cv ⇒ String, Numeric
The coefficient of variation for the QC result (e.g., “5.5”).
-
#key ⇒ String
The attribute being measured.
-
#units ⇒ String
The units in which the measurement was recorded (e.g., “ng/µL”).
-
#value ⇒ String, Numeric
The measured value of the QC result recorded.
Method Summary
Methods inherited from BaseResource
apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations, updatable_fields
Instance Attribute Details
#assay_type ⇒ String
The type of assay used for the QC result (e.g., “PCR”).
118 |
# File 'app/resources/api/v2/qc_result_resource.rb', line 118 attribute :assay_type |
#assay_version ⇒ String
The version of the assay used for the QC result (e.g., “v1.0”).
123 |
# File 'app/resources/api/v2/qc_result_resource.rb', line 123 attribute :assay_version |
#asset ⇒ AssetResource (readonly)
deprecate, fix, or update this relationship to be read-only
This relationship appears to be redundant. Instead, an Asset barcode
or uuid
attribute must be provided in the request, which will be used to associate the QC result with the asset.
The Asset associated with the QC result.
140 |
# File 'app/resources/api/v2/qc_result_resource.rb', line 140 has_one :asset |
#created_at ⇒ DateTime (readonly)
The timestamp indicating when this metadata entry was created.
128 |
# File 'app/resources/api/v2/qc_result_resource.rb', line 128 attribute :created_at, readonly: true |
#cv ⇒ String, Numeric
The coefficient of variation for the QC result (e.g., “5.5”).
113 |
# File 'app/resources/api/v2/qc_result_resource.rb', line 113 attribute :cv |
#key ⇒ String
This is a required attribute.
The attribute being measured. Eg. Concentration
96 |
# File 'app/resources/api/v2/qc_result_resource.rb', line 96 attribute :key |
#units ⇒ String
This is a required attribute.
The units in which the measurement was recorded (e.g., “ng/µL”).
108 |
# File 'app/resources/api/v2/qc_result_resource.rb', line 108 attribute :units |
#value ⇒ String, Numeric
This is a required attribute.
The measured value of the QC result recorded
102 |
# File 'app/resources/api/v2/qc_result_resource.rb', line 102 attribute :value |