Class: Himari::Aws::DynamodbStorage
- Inherits:
-
Object
- Object
- Himari::Aws::DynamodbStorage
- Includes:
- Storages::Base
- Defined in:
- lib/himari/aws/dynamodb_storage.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(client: ::Aws::DynamoDB::Client.new, table_name:) ⇒ DynamodbStorage
constructor
A new instance of DynamodbStorage.
Constructor Details
#initialize(client: ::Aws::DynamoDB::Client.new, table_name:) ⇒ DynamodbStorage
Returns a new instance of DynamodbStorage.
11 12 13 14 |
# File 'lib/himari/aws/dynamodb_storage.rb', line 11 def initialize(client: ::Aws::DynamoDB::Client.new, table_name:) @client = client @table_name = table_name end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
16 17 18 |
# File 'lib/himari/aws/dynamodb_storage.rb', line 16 def client @client end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
16 17 18 |
# File 'lib/himari/aws/dynamodb_storage.rb', line 16 def table_name @table_name end |