Class: AwsTestDump::BaseDynamoProcessor

Inherits:
BaseProcessor show all
Defined in:
lib/aws_test_dump.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseProcessor

#run

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_fileObject

Returns the value of attribute dump_file.



69
70
71
# File 'lib/aws_test_dump.rb', line 69

def dump_file
  @dump_file
end