Class: DynamoDbFramework::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/dynamodb_framework/dynamodb_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})

  if options.has_key?(:endpoint)
    @client = Aws::DynamoDB::Client.new(region: options[:aws_region], endpoint: options[:endpoint])
  else
    @client = Aws::DynamoDB::Client.new
  end

end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'lib/dynamodb_framework/dynamodb_store.rb', line 3

def client
  @client
end