class AWS::DynamoDB::BatchWrite
def write table, options = {}
(**options)-
:delete(Array) -- A list of item keys, Array -
:put(Array) -- An array of items to put. Each item
Parameters:
-
options(Hash) -- -
table(Table, String) -- A {Table} object or table name string.
def write table, options = {} items = table_items(table) if put = options[:put] put.each do |attributes| items << { :put_request => { :item => format_put(attributes) }} end end if del = options[:delete] del.each do |keys| items << { :delete_request => { :key => format_delete(keys) }} end end end