Method: DocSpring::Configuration#initialize
- Defined in:
- lib/docspring/configuration.rb
#initialize {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/docspring/configuration.rb', line 159 def initialize @scheme = 'https' @host = 'sync.api.docspring.com' @base_path = '/api/v1' @server_index = nil @server_operation_index = {} @server_variables = {} @server_operation_variables = {} @api_key = {} @api_key_prefix = {} @client_side_validation = true @verify_ssl = true @verify_ssl_host = true @cert_file = nil @key_file = nil @timeout = 0 @params_encoding = nil @debugging = false @ignore_operation_servers = false @inject_format = false @force_ending_format = false @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) yield(self) if block_given? end |