Class: StateChanger::QcableLibraryPlate

Inherits:
Base
  • Object
show all
Defined in:
app/models/state_changer/qcable_library_plate.rb

Overview

Note:

This pipeline is no longer actively used. We can likely remove this

State on QcableLibraryPlatePurpose is held by the QcAable, and isn't actually updated as part of the QC pipeline. Instead the state changer is purely concerned with applying library information to the plate. as part of: github.com/sanger/gatekeeper/issues/100 - Closing the gate(keeper)

Constant Summary collapse

LIBRARY_TYPE =
'QA1'
INSERT_SIZE =
Aliquot::InsertSize.new(100, 100).freeze

Instance Attribute Summary

Attributes inherited from Base

#labware, #user

Instance Method Summary collapse

Methods inherited from Base

#associated_request_target_state, #contents, #customer_accepts_responsibility, #map_target_state_to_associated_request_state, #target_state

Instance Method Details

#update_labware_stateVoid

Updates the state of the labware to the target state. The basic implementation does this by updating all of the TransferRequest instances to the state specified. If contents is blank then the change is assumed to relate to all wells of the plate, otherwise only the selected ones are updated.

Returns:

  • (Void)

17
18
19
# File 'app/models/state_changer/qcable_library_plate.rb', line 17

def update_labware_state
  assign_library_information_to_wells
end