Class: Kvom::Adapter::DynamodbAdapter

Inherits:
Base
  • Object
show all
Defined in:
lib/kvom/adapter/dynamodb_adapter.rb

Instance Attribute Summary

Attributes inherited from Base

#connection_spec, #documents_loaded_counter, #request_counter

Instance Method Summary collapse

Methods inherited from Base

#destroy, #destroy_index, #get, #initialize, #query, #range_values_of_hash_value, #save, #save_index

Constructor Details

This class inherits a constructor from Kvom::Adapter::Base

Instance Method Details

#new_document(key, attributes = nil) ⇒ Object



8
9
10
# File 'lib/kvom/adapter/dynamodb_adapter.rb', line 8

def new_document(key, attributes = nil)
  DynamodbDocument.new(key, attributes, item_for_hash_and_range(key.first, key[1]))
end