Class: DynamoDbFramework::Store
- Inherits:
-
Object
- Object
- DynamoDbFramework::Store
- Defined in:
- lib/dynamodb_framework/dynamodb_store.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Store
constructor
A new instance of Store.
Constructor Details
#initialize(options = {}) ⇒ Store
Returns a new instance of Store.
5 6 7 8 9 10 11 12 13 |
# File 'lib/dynamodb_framework/dynamodb_store.rb', line 5 def initialize( = {}) if .has_key?(:endpoint) @client = Aws::DynamoDB::Client.new(region: [:aws_region], endpoint: [:endpoint]) else @client = Aws::DynamoDB::Client.new end end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/dynamodb_framework/dynamodb_store.rb', line 3 def client @client end |