class HeimdallApm::Config
Public Class Methods
new()
click to toggle source
# File lib/heimdall_apm/config.rb, line 3 def initialize @loaded = nil load_default_config end
Public Instance Methods
has_key?(key)
click to toggle source
# File lib/heimdall_apm/config.rb, line 14 def has_key?(key) @settings.key?(key) end
Also aliased as: key?
value(key)
click to toggle source
# File lib/heimdall_apm/config.rb, line 8 def value(key) # TODO: handle empty strings keys or boolean passed as strings @loaded && @settings[key] end
Also aliased as: []
Private Instance Methods
load_default_config()
click to toggle source
# File lib/heimdall_apm/config.rb, line 21 def load_default_config @settings = Rails.application.config_for(:heimdall_apm) @loaded = true rescue # TODO: handle no configuration file found end