Class: StateChanger::TubeRack
- Defined in:
- app/models/state_changer/tube_rack.rb
Overview
Handles the basic transitions of a tube rack
Constant Summary collapse
- PASSED_TARGET_STATE =
%w[passed].freeze
- TRANSFER_REQUEST_FILTER_STATES =
%w[failed cancelled].freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#update_labware_state ⇒ void
Follows app/models/state_changer/tube_base.rb.
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_state ⇒ void
This method returns an undefined value.
Follows app/models/state_changer/tube_base.rb. Updates the state of all labware associated with the tube rack.
Iterates through all racked tubes in the labware and updates their associated requests and transfer requests.
15 16 17 18 19 20 |
# File 'app/models/state_changer/tube_rack.rb', line 15 def update_labware_state labware.racked_tubes.each do |racked_tube| # Do we need to invoke update_associated_requests for state transfers? update_transfer_requests(racked_tube, target_state) end end |