module NewRelicManagement::Config

> This is the Configuration module.

Public Instance Methods

add(config = {}) click to toggle source

> Facilitate Dynamic Addition of Configuration Values

> @return [class_variable]

# File lib/newrelic-management/config.rb, line 78
def add(config = {})
  config.each do |key, value|
    define_setting key.to_sym, value
  end
end
clear(config) click to toggle source

> Facilitate Dynamic Removal of Configuration Values

> @return nil

# File lib/newrelic-management/config.rb, line 89
def clear(config)
  Array(config).each do |setting|
    delete_setting setting
  end
end
options() click to toggle source

> List the Configurable Keys as a Hash

@return [Hash]

# File lib/newrelic-management/config.rb, line 100
def options
  map = Config.class_variables.map do |key|
    [key.to_s.tr('@', '').to_sym, class_variable_get(:"#{key}")]
  end
  Hash[map]
end