Sha256: e6eccfd8ed746443819f50b1775ae65dc7c166472370c7e8ca9b23083196b23d
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 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] validator.call(attributes) relation.update(attributes.to_h) end.to_a end def assert_tuple_count # noop end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-http-0.5.0 | lib/rom/http/commands/update.rb |