Class: Mara::Configure
- Inherits:
-
Object
- Object
- Mara::Configure
- Defined in:
- lib/mara/configure.rb
Overview
The configuration for Mara
Defined Under Namespace
Classes: AwsConfig, DynamoConfig
Instance Attribute Summary collapse
-
#aws ⇒ Mara::Configure::AwsConfig
readonly
The Aws config.
-
#dynamodb ⇒ Mara::Configure::DynamoConfig
readonly
The DynamoDB config.
-
#env ⇒ String
readonly
The current environment that Mara is configured for.
Instance Method Summary collapse
-
#initialize ⇒ Configure
constructor
Create a new instance.
Constructor Details
#initialize ⇒ Configure
Note:
This should never be called directly by the client.
Create a new instance.
88 89 90 91 92 |
# File 'lib/mara/configure.rb', line 88 def initialize @env = 'production' @dynamodb = DynamoConfig.new(nil, nil) @aws = AwsConfig.new('us-east-1') end |
Instance Attribute Details
#aws ⇒ Mara::Configure::AwsConfig (readonly)
The Aws config
74 75 76 |
# File 'lib/mara/configure.rb', line 74 def aws @aws end |
#dynamodb ⇒ Mara::Configure::DynamoConfig (readonly)
The DynamoDB config
80 81 82 |
# File 'lib/mara/configure.rb', line 80 def dynamodb @dynamodb end |
#env ⇒ String (readonly)
The current environment that Mara is configured for.
68 69 70 |
# File 'lib/mara/configure.rb', line 68 def env @env end |