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


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

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

Instance Method Details

#state_of(plate) ⇒ Object


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

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