class ROM::DynamoDB::Commands::Delete

Public Instance Methods

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