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
12 13 14 |
# File 'lib/sgtn-client/core/config.rb', line 12 def config @config ||= Config.config end |
#set_config(env, override_configurations = {}) ⇒ Object Also known as: config=
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/sgtn-client/core/config.rb', line 16 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 |