Class: Rom::Dynamo::Commands::Delete
- Inherits:
-
ROM::Commands::Delete
- Object
- ROM::Commands::Delete
- Rom::Dynamo::Commands::Delete
- Defined in:
- lib/rom/dynamo/commands.rb
Overview
DynamoDB delete command
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
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 |