Class: Qcable

Inherits:
ApplicationRecord show all
Includes:
AASM, AASM::Extensions, 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

Methods included from AASM::Extensions

#transition_to

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Attribute Details

#barcodeObject

Returns the value of attribute barcode.



16
17
18
# File 'app/models/qcable.rb', line 16

def barcode
  @barcode
end

#supplied_barcodeObject

Returns the value of attribute supplied_barcode.



16
17
18
# File 'app/models/qcable.rb', line 16

def supplied_barcode
  @supplied_barcode
end

Instance Method Details

#stamp_indexObject



60
61
62
63
64
# File 'app/models/qcable.rb', line 60

def stamp_index
  return nil if stamp_qcable.nil?

  lot.qcables.stamped.index(self)
end