Class: RecordLoader::RobotLoader
- Inherits:
-
ApplicationRecordLoader
- Object
- Base
- ApplicationRecordLoader
- RecordLoader::RobotLoader
- Defined in:
- lib/record_loader/robot_loader.rb
Overview
Creates the specified robots if they are not present
Instance Method Summary collapse
Methods inherited from ApplicationRecordLoader
Instance Method Details
#create_or_update!(name, options) ⇒ Object
11 12 13 |
# File 'lib/record_loader/robot_loader.rb', line 11 def create_or_update!(name, ) Robot.create_with().find_or_create_by!(name:) end |