Sha256: 82a2a027476653abbe3ea080ae1755ebf377edcbc5e3cc3cf6f368b7dbfb8b45
Contents?: true
Size: 481 Bytes
Versions: 3
Compression:
Stored size: 481 Bytes
Contents
module ROM module HTTP module Commands # HTTP Create command # # @api public class Create < ROM::Commands::Create adapter :http # Submits each of the provided tuples over HTTP post # # @api public def execute(tuples) Array([tuples]).flatten.map do |tuple| attributes = input[tuple] relation.insert(attributes.to_h) end.to_a end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rom-http-0.7.0 | lib/rom/http/commands/create.rb |
rom-http-0.6.0 | lib/rom/http/commands/create.rb |
rom-http-0.6.0.rc1 | lib/rom/http/commands/create.rb |