Module: Sequencescape::LotType::LotCreator

Defined in:
lib/sequencescape/lot_type.rb

Instance Method Summary collapse

Instance Method Details

#create!(attributes = nil) ⇒ Object



5
6
7
8
9
10
# File 'lib/sequencescape/lot_type.rb', line 5

def create!(attributes = nil)
  attributes ||= {}
  new({}, false).tap do |lot|
    api.create(actions.create, { 'lot' => attributes }, Sequencescape::Api::ModifyingHandler.new(lot))
  end
end