Method: Dynamoid::TransactionWrite::DeleteWithInstance#action_request
- Defined in:
- lib/dynamoid/transaction_write/delete_with_instance.rb
#action_request ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/dynamoid/transaction_write/delete_with_instance.rb', line 37 def action_request key = { @model_class.hash_key => dump_attribute(@model_class.hash_key, @model.hash_key) } if @model_class.range_key? key[@model_class.range_key] = dump_attribute(@model_class.range_key, @model.range_value) end { delete: { key: key, table_name: @model_class.table_name } } end |