Method: WindcaveRest::Configuration#initialize

Defined in:
lib/windcave_rest/configuration.rb

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

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/windcave_rest/configuration.rb', line 135

def initialize
  @scheme = 'https'
  @host = 'uat.windcave.com'
  @supported_environments = { :test => "uat.windcave.com", :live => "sec.windcave.com" }
  @environment = "test"
  @base_path = '/api/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)
  @api_version = '1'
  @retry_interval = 0
  @num_retries =  3      
  @user_agent = "windcave_rest/#{VERSION}/ruby"

  yield(self) if block_given?
end