Module: SgtnClient::Configuration
- Defined in:
- lib/sgtn-client/core/config.rb
Instance Method Summary collapse
- #config ⇒ Object
- #set_config(env, override_configurations = {}) ⇒ Object (also: #config=)
Instance Method Details
#config ⇒ Object
17 18 19 |
# File 'lib/sgtn-client/core/config.rb', line 17 def config @config ||= Config.config end |
#set_config(env, override_configurations = {}) ⇒ Object Also known as: config=
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/sgtn-client/core/config.rb', line 21 def set_config(env, override_configurations = {}) @config = case env when Config env when Hash begin config.dup.merge!(env) rescue Errno::ENOENT => error Config.new(env) end else Config.config(env, override_configurations) end end |