Class: Adjust::Core::Configuration
- Inherits:
-
Object
- Object
- Adjust::Core::Configuration
- Defined in:
- lib/adjust/core/configuration.rb
Instance Method Summary collapse
- #active ⇒ Object
- #active_environment ⇒ Object
- #configurations ⇒ Object
- #environment ⇒ Object
- #load(path, environment: nil) ⇒ Object
- #tokens(app, event) ⇒ Object
Instance Method Details
#active ⇒ Object
20 21 22 |
# File 'lib/adjust/core/configuration.rb', line 20 def active configurations[environment] end |
#active_environment ⇒ Object
24 25 26 |
# File 'lib/adjust/core/configuration.rb', line 24 def active_environment active['environment'] end |
#configurations ⇒ Object
16 17 18 |
# File 'lib/adjust/core/configuration.rb', line 16 def configurations @configurations ||= read_configurations end |
#environment ⇒ Object
12 13 14 |
# File 'lib/adjust/core/configuration.rb', line 12 def environment @environment ||= default_environment end |
#load(path, environment: nil) ⇒ Object
7 8 9 10 |
# File 'lib/adjust/core/configuration.rb', line 7 def load(path, environment: nil) @environment = environment || default_environment @configurations = read_configurations path end |