Class: BetterFx::Configuration

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

Overview

Provides configuration management for the BetterFx gem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_environmentObject

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_tokenObject

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_environmentsObject

Returns the value of attribute supported_environments.



4
5
6
# File 'lib/better_fx/configuration.rb', line 4

def supported_environments
  @supported_environments
end