class ROM::HTTP::Commands::Create
@api public
Public Instance Methods
execute(tuples)
click to toggle source
Submits each of the provided tuples over HTTP
post
@api public
# File lib/rom/http/commands/create.rb, line 15 def execute(tuples) Array([tuples]).flatten.map do |tuple| attributes = input[tuple] relation.insert(attributes.to_h) end.to_a end