Module: Sequencescape::LotType::LotCreator

Defined in:
lib/sequencescape/lot_type.rb

Instance Method Summary collapse

Instance Method Details

#create!(attributes = nil) ⇒ Object



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

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