Method: OrderCloud::Configuration#initialize

Defined in:
lib/order_cloud/configuration.rb

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

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:



156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/order_cloud/configuration.rb', line 156

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

  @auth_url = 'https://auth.ordercloud.io/oauth/token'
  @impersonation_token = nil
  @access_token = nil
  @client_id = ''
  @scopes = []

  yield(self) if block_given?
end