Class: V1::QcReceptionResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::QcReceptionResource
- Defined in:
- app/resources/v1/qc_reception_resource.rb
Overview
This resource is write-only: its endpoint will not accept GET, PATCH, or DELETE requests.
Access this resource via the /v1/qc_receptions endpoint.
rubocop:disable Layout/LineLength Provides a JSON:API representation of QcReception model.
A QcReception makes an entry in qc_receptions for all the requests received TOL consumer on the qc_reception endpoint. Stores the qc data in qc_results table with the associated qc_reception_id
Steps:
-
Create QcReception
-
Create QcResults
-
Publish qc result messages
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. rubocop:enable Layout/LineLength
Constant Summary collapse
- PERMITTED_QC_FIELDS =
%w[ labware_barcode sample_external_id sheared_femto_fragment_size post_spri_concentration post_spri_volume final_nano_drop_280 final_nano_drop_230 final_nano_drop shearing_qc_comments date_submitted ].freeze
Instance Attribute Summary collapse
-
#qc_results_list ⇒ Object
writeonly
Sets the QC results list from the request parameters.
-
#source ⇒ String
writeonly
The source of the QC reception.
Instance Method Summary collapse
-
#create_qc_results! ⇒ Object
Creates QC results for the model.
-
#permitted_attributes ⇒ Array<String>
Returns the list of permitted QC fields.
-
#publish_messages ⇒ Object
Publishes messages for the QC reception.
Instance Attribute Details
#qc_results_list=(request_parameters) ⇒ Object (writeonly)
Sets the QC results list from the request parameters.
67 |
# File 'app/resources/v1/qc_reception_resource.rb', line 67 attributes :qc_results_list, :source |
#source=(value) ⇒ String (writeonly)
Returns the source of the QC reception.
67 |
# File 'app/resources/v1/qc_reception_resource.rb', line 67 attributes :qc_results_list, :source |
Instance Method Details
#create_qc_results! ⇒ Object
Creates QC results for the model.
67 |
# File 'app/resources/v1/qc_reception_resource.rb', line 67 attributes :qc_results_list, :source |
#permitted_attributes ⇒ Array<String>
Returns the list of permitted QC fields.
67 |
# File 'app/resources/v1/qc_reception_resource.rb', line 67 attributes :qc_results_list, :source |
#publish_messages ⇒ Object
Publishes messages for the QC reception.
67 |
# File 'app/resources/v1/qc_reception_resource.rb', line 67 attributes :qc_results_list, :source |