Class: StateChanger::QcableLabware

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

Overview

State on Labware associated with Qcables (such as unused tag plates) delegates their state back to the Qcable itself. Thus when the tag plate is exhausted, we record this against the QCable

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 qcable associated with the labware to the target state.

Returns:

  • (Void)


10
11
12
# File 'app/models/state_changer/qcable_labware.rb', line 10

def update_labware_state
  qcable.transition_to(target_state)
end