Module: DynamodbRecord::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/dynamodb_record/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_key_idObject

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_checksumsObject

Returns the value of attribute compute_checksums.



7
8
9
# File 'lib/dynamodb_record/config.rb', line 7

def compute_checksums
  @compute_checksums
end

#endpointObject

Returns the value of attribute endpoint.



7
8
9
# File 'lib/dynamodb_record/config.rb', line 7

def endpoint
  @endpoint
end

#namespaceObject

Returns the value of attribute namespace.



7
8
9
# File 'lib/dynamodb_record/config.rb', line 7

def namespace
  @namespace
end

#read_capacity_unitsObject

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

#regionObject

Returns the value of attribute region.



7
8
9
# File 'lib/dynamodb_record/config.rb', line 7

def region
  @region
end

#secret_access_keyObject

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_unitsObject

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_defaultsObject



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