class Mara::Configure

The configuration for Mara

@author Maddie Schipper @since 1.0.0

Constants

AwsConfig

Aws specific config values.

@!attribute [rw] region

The region name to use for the Client.

@note By default this is `us-east-1`

@return [String]
DynamoConfig

DynamoDB specific config values.

@!attribute [rw] table_name

The name of the DynamoDB table to use.

@note If this is not set, pretty much nothing will work.

@return [String, nil]

@!attribute [rw] endpoint

The DynamoDB endpoint to use. If `nil` this will fallback to the
AWS default endpoint.

@return [String, nil]

Attributes

aws[R]

The Aws config

@return [ Mara::Configure::AwsConfig]

dynamodb[R]

The DynamoDB config

@return [ Mara::Configure::DynamoConfig]

env[R]

The current environment that Mara is configured for.

@return [String]

Public Class Methods

new() click to toggle source

@private

Create a new instance.

@note This should never be called directly by the client.

# File lib/mara/configure.rb, line 88
def initialize
  @env = 'production'
  @dynamodb = DynamoConfig.new(nil, nil)
  @aws = AwsConfig.new('us-east-1')
end

Private Instance Methods

_set_env(env) click to toggle source
# File lib/mara/configure.rb, line 96
def _set_env(env)
  @env = env.to_s
end