Class: LotType

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

Overview

A LotType governs the behaviour of a Lot It is selected when generating a Lot in Gatekeeper

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 Method Details

#printer_typeObject


20
21
22
# File 'app/models/lot_type.rb', line 20

def printer_type
  target_purpose.barcode_printer_type.name
end

#valid_template_classObject


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

def valid_template_class
  template_class.constantize
end