Class: SettingsReader::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/settings_reader/configuration.rb

Overview

All gem configuration settings

Constant Summary collapse

DEFAULT_BASE_FILE_PATH =
'config/app_settings.yml'.freeze
DEFAULT_LOCAL_FILE_PATH =
'config/app_settings.local.yml'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/settings_reader/configuration.rb', line 8

def initialize
  @base_file_path = DEFAULT_BASE_FILE_PATH
  @local_file_path = DEFAULT_LOCAL_FILE_PATH
  @backends = [
    SettingsReader::Backends::YamlFile.new(DEFAULT_LOCAL_FILE_PATH),
    SettingsReader::Backends::YamlFile.new(DEFAULT_BASE_FILE_PATH)
  ]
  @resolvers = [
    SettingsReader::Resolvers::Env.new
  ]
end

Instance Attribute Details

#backendsObject

Returns the value of attribute backends.



6
7
8
# File 'lib/settings_reader/configuration.rb', line 6

def backends
  @backends
end

#resolversObject

Returns the value of attribute resolvers.



6
7
8
# File 'lib/settings_reader/configuration.rb', line 6

def resolvers
  @resolvers
end