Class: StateChanger::TubeBase Abstract
- Defined in:
- app/models/state_changer/tube_base.rb
Overview
This class is abstract.
This class should not be used directly. Subclasses should at least implement #update_associated_requests
Shared behaviour for tubes
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#update_labware_state ⇒ Void
Updates the state of the labware to the target state.
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
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.
10 11 12 13 |
# File 'app/models/state_changer/tube_base.rb', line 10 def update_labware_state update_associated_requests if associated_request_target_state update_transfer_requests end |