Class: RecordLoader::PlatePurposeLoader

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

Overview

rubocop:todo Style/Documentation

Constant Summary collapse

DEFAULT_PRINTER_TYPE =
'96 Well Plate'.freeze

Instance Method Summary collapse

Instance Method Details

#create_or_update!(name, options) ⇒ Object


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

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

  create_purpose(name, options)
end