Method: PureCloud::Configuration#initialize

Defined in:
lib/purecloud/configuration.rb

#initialize {|_self| ... } ⇒ Configuration

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:



94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/purecloud/configuration.rb', line 94

def initialize
  @scheme = 'https'
  @host = 'api.mypurecloud.com'
  @base_path = ''
  @api_key = {}
  @api_key_prefix = {}
  @timeout = 0
  @verify_ssl = true
  @cert_file = nil
  @key_file = nil
  @debugging = false
  @inject_format = false
  @force_ending_format = false
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)

  yield(self) if block_given?
end