Class: AwsTestDump::BaseDynamoProcessor
- Inherits:
-
BaseProcessor
- Object
- BaseProcessor
- AwsTestDump::BaseDynamoProcessor
- Defined in:
- lib/aws_test_dump.rb
Direct Known Subclasses
DynamoDataDump, DynamoDataRestore, DynamoSchemaDump, DynamoSchemaRestore, DynamoTableDataRestore, DynamoTableDump
Instance Attribute Summary collapse
-
#dump_file ⇒ Object
Returns the value of attribute dump_file.
Instance Method Summary collapse
-
#initialize(dump_file = nil) ⇒ BaseDynamoProcessor
constructor
A new instance of BaseDynamoProcessor.
Methods inherited from BaseProcessor
Constructor Details
#initialize(dump_file = nil) ⇒ BaseDynamoProcessor
Returns a new instance of BaseDynamoProcessor.
71 72 73 74 75 76 77 |
# File 'lib/aws_test_dump.rb', line 71 def initialize(dump_file=nil) dynamo_args = {} dynamo_args[:endpoint] = ENV['DYNAMO_ENDPOINT'] if ENV['DYNAMO_ENDPOINT'] @dynamo_client = Aws::DynamoDB::Client.new(**dynamo_args) @dump_file = dump_file @dump_file ||= DEFAULT_DUMP_FILE end |
Instance Attribute Details
#dump_file ⇒ Object
Returns the value of attribute dump_file.
69 70 71 |
# File 'lib/aws_test_dump.rb', line 69 def dump_file @dump_file end |