class ROM::RethinkDB::Commands::Update
Public Instance Methods
dataset()
click to toggle source
# File lib/rom/rethinkdb/commands/update.rb, line 23 def dataset relation.dataset end
execute(tuple)
click to toggle source
# File lib/rom/rethinkdb/commands/update.rb, line 10 def execute(tuple) attributes = input[tuple] validator.call(attributes) tuple = attributes.to_h update(tuple) end
update(tuple)
click to toggle source
# File lib/rom/rethinkdb/commands/update.rb, line 18 def update(tuple) dataset.scope.update(tuple).run(dataset.connection) dataset.to_a end