class AWS::DynamoDB::BatchGet

def each &block

Returns:
  • (nil) -
def each &block
  options = { :request_items => @request_items }
  begin
    response = client.batch_get_item(options)
    response.data['Responses'].each_pair do |table_name,details|
      details['Items'].each do |hash_data|
        attributes = values_from_response_hash(hash_data)
        yield(table_name, attributes)
      end
    end
    options[:request_items] = convert_unprocessed_keys(response)
  end while options[:request_items]
  nil
end