Sha256: 8aeefc62efd6cc61e4b40dfc73d7bba52b36d52ae27dcb7d84c4462da4a110d3
Contents?: true
Size: 538 Bytes
Versions: 3
Compression:
Stored size: 538 Bytes
Contents
module ROM module HTTP module Commands # HTTP update command # # @api public class Update < ROM::Commands::Update adapter :http # Submits each of the provided tuples via HTTP put # # @api public def execute(tuples) Array([tuples]).flatten.map do |tuple| attributes = input[tuple] relation.update(attributes.to_h) end.to_a end def assert_tuple_count # noop 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/update.rb |
rom-http-0.6.0 | lib/rom/http/commands/update.rb |
rom-http-0.6.0.rc1 | lib/rom/http/commands/update.rb |