Class: RecordLoader::PlatePurposeLoader

Inherits:
ApplicationRecordLoader show all
Defined in:
lib/record_loader/plate_purpose_loader.rb

Constant Summary collapse

DEFAULT_PRINTER_TYPE =
'96 Well Plate'

Instance Method Summary collapse

Methods inherited from ApplicationRecordLoader

#wip_list

Instance Method Details

#create_or_update!(name, options) ⇒ Object



8
9
10
11
12
# File 'lib/record_loader/plate_purpose_loader.rb', line 8

def create_or_update!(name, options)
  return if existing_purposes.include?(name)

  create_purpose(name, options)
end