Class: BetterFx::Configuration
- Inherits:
-
Object
- Object
- BetterFx::Configuration
- Defined in:
- lib/better_fx/configuration.rb
Overview
Provides configuration management for the BetterFx gem
Instance Attribute Summary collapse
-
#current_environment ⇒ Object
Returns the value of attribute current_environment.
-
#signalfx_api_token ⇒ Object
Returns the value of attribute signalfx_api_token.
-
#supported_environments ⇒ Object
Returns the value of attribute supported_environments.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/better_fx/configuration.rb', line 8 def initialize @signalfx_api_token = ENV["SIGNALFX_API_TOKEN"] @supported_environments = [:production, :prod, "production", "prod"] @current_environment = ENV["APP_ENV"] || :production end |
Instance Attribute Details
#current_environment ⇒ Object
Returns the value of attribute current_environment.
4 5 6 |
# File 'lib/better_fx/configuration.rb', line 4 def current_environment @current_environment end |
#signalfx_api_token ⇒ Object
Returns the value of attribute signalfx_api_token.
4 5 6 |
# File 'lib/better_fx/configuration.rb', line 4 def signalfx_api_token @signalfx_api_token end |
#supported_environments ⇒ Object
Returns the value of attribute supported_environments.
4 5 6 |
# File 'lib/better_fx/configuration.rb', line 4 def supported_environments @supported_environments end |