Sha256: 5200b742612d2db65204d2ebd562497a336ca39c7452d2cc1dc049e74f3b314e
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true 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.10.0 | lib/rom/http/commands/update.rb |
rom-http-0.9.0 | lib/rom/http/commands/update.rb |
rom-http-0.8.0 | lib/rom/http/commands/update.rb |