Class: Qcable

Inherits:
ApplicationRecord show all
Includes:
AASM, Statemachine, Uuid::Uuidable
Defined in:
app/models/qcable.rb

Defined Under Namespace

Modules: Statemachine

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Statemachine

#default_state, included, #on_destroyed, #on_failed, #on_passed, #on_qc, #on_released, #on_stamp, #on_used, #transition_to

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren

Instance Attribute Details

#barcodeObject

Returns the value of attribute barcode


14
15
16
# File 'app/models/qcable.rb', line 14

def barcode
  @barcode
end

Instance Method Details

#stamp_indexObject


48
49
50
51
52
# File 'app/models/qcable.rb', line 48

def stamp_index
  return nil if stamp_qcable.nil?

  lot.qcables.stamped.index(self)
end