lib/ads_common/api.rb
# Initializes config with default values and converts existing if required.
Initializes config with default values and converts existing if required.
Initializes config with default values and converts existing if required .
def init_config()
      provided_logger = @config.read('library.logger')
      self.logger = (provided_logger.nil?) ?
          create_default_logger() : provided_logger
      ['service.environment', 'authentication.method'].each do |parameter|
        symbolize_config_value(parameter)
      end
    end
def init_config ( ) provided_logger = @config . read ( 'library.logger' ) self . logger = ( provided_logger . nil? ) ? create_default_logger ( ) : provided_logger [ 'service.environment' , 'authentication.method' ] . each do | parameter | symbolize_config_value ( parameter ) end end
Initializes config with default values and converts existing if required.
Initializes config with default values and converts existing if required .
# Set up logger. # Validating most important parameters.