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.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


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

def self.included(base)
  base.state_changer = StateChanger::QcableLabware
end

Instance Method Details

#state_of(plate) ⇒ Object


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

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