Class: QcableCreator

Inherits:
ApplicationRecord show all
Includes:
Uuid::Uuidable
Defined in:
app/models/qcable_creator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#barcodesObject

Returns the value of attribute barcodes


11
12
13
# File 'app/models/qcable_creator.rb', line 11

def barcodes
  @barcodes
end

#countObject

Returns the value of attribute count


11
12
13
# File 'app/models/qcable_creator.rb', line 11

def count
  @count
end

Instance Method Details

#make_qcables!Object


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

def make_qcables!
  qcables_by_count! if count.present?
  qcables_by_barcode! if barcodes.present?
end