Class: RecordLoader::LibraryTypeLoader
- Inherits:
-
ApplicationRecordLoader
- Object
- Base
- ApplicationRecordLoader
- RecordLoader::LibraryTypeLoader
- Defined in:
- lib/record_loader/library_type_loader.rb
Overview
Creates the specified plate types if they are not present
Instance Method Summary collapse
Methods inherited from ApplicationRecordLoader
Instance Method Details
#create_or_update!(name, options) ⇒ Object
12 13 14 |
# File 'lib/record_loader/library_type_loader.rb', line 12 def create_or_update!(name, ) LibraryType.create_with().find_or_create_by!(name:) end |
#names ⇒ Object
16 17 18 |
# File 'lib/record_loader/library_type_loader.rb', line 16 def names @config.keys end |