Class: RecordLoader::PlatePurposeLoader

Inherits:
Base
  • Object
show all
Defined in:
lib/record_loader/plate_purpose_loader.rb

Constant Summary collapse

DEFAULT_PRINTER_TYPE =
'96 Well Plate'

Constants inherited from Base

Base::BASE_CONFIG_PATH, Base::EXTENSION

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RecordLoader::Base

Instance Method Details

#create!Object


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

def create!
  ActiveRecord::Base.transaction do
    @config.each do |name, config|
      next if existing_purposes.include?(name)

      create_purpose(name, config)
    end
  end
end