Method: HttpApiClient::Config#initialize
- Defined in:
- lib/http_api_client/config.rb
#initialize(config_file = DEFAULT_CONFIG_FILE_LOCATION) ⇒ Config
Returns a new instance of Config.
12 13 14 15 16 17 18 |
# File 'lib/http_api_client/config.rb', line 12 def initialize(config_file = DEFAULT_CONFIG_FILE_LOCATION) if File.exists?(config_file) @config = symbolize_keys(config_for(config_file, HttpApiClient.env)) else raise "Could not load config file: #{config_file}" end end |