Class: NpgActions::AssetsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- NpgActions::AssetsController
- Defined in:
- app/controllers/npg_actions/assets_controller.rb
Overview
Takes QC decisions on lanes from NPG and records the information in Sequencescape, passing the requests and creating events as required.
Constant Summary collapse
- NPGActionInvalid =
Raised if an action is performed which contradicts a previous one
Class.new(StandardError)
Instance Method Summary collapse
-
#fail ⇒ Object
POST /npg_actions/assets/:asset_id/pass.
-
#pass ⇒ Object
POST /npg_actions/assets/:asset_id/fail.
Instance Method Details
#fail ⇒ Object
POST /npg_actions/assets/:asset_id/pass
20 21 22 |
# File 'app/controllers/npg_actions/assets_controller.rb', line 20 def fail action_for_qc_state('fail') end |
#pass ⇒ Object
POST /npg_actions/assets/:asset_id/fail
25 26 27 |
# File 'app/controllers/npg_actions/assets_controller.rb', line 25 def pass action_for_qc_state('pass') end |