Module: DynamodbRecord::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.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#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.
7 8 9 |
# File 'lib/dynamodb_record/config.rb', line 7 def access_key_id @access_key_id end |
#compute_checksums ⇒ Object
Returns the value of attribute compute_checksums.
7 8 9 |
# File 'lib/dynamodb_record/config.rb', line 7 def compute_checksums @compute_checksums end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
7 8 9 |
# File 'lib/dynamodb_record/config.rb', line 7 def endpoint @endpoint end |
#namespace ⇒ Object
Returns the value of attribute namespace.
7 8 9 |
# File 'lib/dynamodb_record/config.rb', line 7 def namespace @namespace end |
#read_capacity_units ⇒ Object
Returns the value of attribute read_capacity_units.
7 8 9 |
# File 'lib/dynamodb_record/config.rb', line 7 def read_capacity_units @read_capacity_units end |
#region ⇒ Object
Returns the value of attribute region.
7 8 9 |
# File 'lib/dynamodb_record/config.rb', line 7 def region @region end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
7 8 9 |
# File 'lib/dynamodb_record/config.rb', line 7 def secret_access_key @secret_access_key end |
#write_capacity_units ⇒ Object
Returns the value of attribute write_capacity_units.
7 8 9 |
# File 'lib/dynamodb_record/config.rb', line 7 def write_capacity_units @write_capacity_units end |
Instance Method Details
#set_defaults ⇒ Object
10 11 12 13 14 15 |
# File 'lib/dynamodb_record/config.rb', line 10 def set_defaults self.region = 'us-east-1' self.read_capacity_units = 20 self.write_capacity_units = 20 self.namespace = nil end |