Module: SharedBehaviour::QcableAsset

Included in:
QcablePlatePurpose, QcableTubePurpose
Defined in:
app/models/shared_behaviour/qcable_asset.rb

Overview

Include in classes which have an associated qcable which handles their QC state.

Instance Method Summary collapse

Instance Method Details

#state_of(plate) ⇒ Object


5
6
7
# File 'app/models/shared_behaviour/qcable_asset.rb', line 5

def state_of(plate)
  qcable_for(plate).state
end

#transition_to(plate, state, *_ignored) ⇒ Object


9
10
11
# File 'app/models/shared_behaviour/qcable_asset.rb', line 9

def transition_to(plate, state, *_ignored)
  qcable_for(plate).transition_to(state)
end