Class: DingHook::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/ding_hook/config.rb

Instance Method Summary collapse

Instance Method Details

#configuration(config = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/ding_hook/config.rb', line 9

def configuration(config = {})
  @config ||= yaml_settings.tap do |tmp_config|
    config.each do |key, value|
      tmp_config[key.to_sym] = value if value
    end
  end
end