Class: Qcable
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Qcable
- Includes:
- AASM, AASM::Extensions, Statemachine, Uuid::Uuidable
- Defined in:
- app/models/qcable.rb
Defined Under Namespace
Modules: Statemachine
Instance Attribute Summary collapse
-
#barcode ⇒ Object
Returns the value of attribute barcode.
-
#supplied_barcode ⇒ Object
Returns the value of attribute supplied_barcode.
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
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
Instance Attribute Details
#barcode ⇒ Object
Returns the value of attribute barcode.
16 17 18 |
# File 'app/models/qcable.rb', line 16 def @barcode end |
#supplied_barcode ⇒ Object
Returns the value of attribute supplied_barcode.
16 17 18 |
# File 'app/models/qcable.rb', line 16 def @supplied_barcode end |
Instance Method Details
#stamp_index ⇒ Object
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 |