Module: DynamoRecord::Config
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
-
#compute_checksums ⇒ Object
Returns the value of attribute compute_checksums.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#read_capacity_units ⇒ Object
Returns the value of attribute read_capacity_units.
-
#region ⇒ Object
Returns the value of attribute region.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#write_capacity_units ⇒ Object
Returns the value of attribute write_capacity_units.
Instance Method Summary collapse
Instance Attribute Details
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
5 6 7 |
# File 'lib/dynamo_record/config.rb', line 5 def access_key_id @access_key_id end |
#compute_checksums ⇒ Object
Returns the value of attribute compute_checksums.
5 6 7 |
# File 'lib/dynamo_record/config.rb', line 5 def compute_checksums @compute_checksums end |
#namespace ⇒ Object
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/dynamo_record/config.rb', line 5 def namespace @namespace end |
#read_capacity_units ⇒ Object
Returns the value of attribute read_capacity_units.
5 6 7 |
# File 'lib/dynamo_record/config.rb', line 5 def read_capacity_units @read_capacity_units end |
#region ⇒ Object
Returns the value of attribute region.
5 6 7 |
# File 'lib/dynamo_record/config.rb', line 5 def region @region end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
5 6 7 |
# File 'lib/dynamo_record/config.rb', line 5 def secret_access_key @secret_access_key end |
#write_capacity_units ⇒ Object
Returns the value of attribute write_capacity_units.
5 6 7 |
# File 'lib/dynamo_record/config.rb', line 5 def write_capacity_units @write_capacity_units end |
Instance Method Details
#set_defaults ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/dynamo_record/config.rb', line 7 def set_defaults self.region = 'us-east-1' self.read_capacity_units = 20 self.write_capacity_units = 20 self.namespace = nil self.compute_checksums = true end |