Class: Rom::Dynamo::Commands::Delete

Inherits:
ROM::Commands::Delete
  • Object
show all
Defined in:
lib/rom/dynamo/commands.rb

Overview

DynamoDB delete command

Instance Method Summary collapse

Instance Method Details

#executeObject



18
19
20
21
22
# File 'lib/rom/dynamo/commands.rb', line 18

def execute
  target.to_a.tap do |tuples|
    tuples.each { |t| relation.delete(t) }
  end
end