class ROM::DynamoDB::Commands::Update

Public Instance Methods

execute(attributes) click to toggle source
# File lib/rom/dynamodb/commands/update.rb, line 7
def execute(attributes)
  relation.to_a.collect { |tuple| with_tuple(tuple, attributes) }
end
with_tuple(tuple, attributes) click to toggle source
# File lib/rom/dynamodb/commands/update.rb, line 11
def with_tuple(tuple, attributes)
  data = tuple.is_a?(Hash) ? tuple : tuple.to_h
  source.update(input[data], attributes.to_h)
end