Sha256: 257488b2a98022c782d399ec2914a7705c02b6e3253461846d148d82810cd6f8
Contents?: true
Size: 1.03 KB
Versions: 11
Compression:
Stored size: 1.03 KB
Contents
module DwollaSwagger module Swagger class Configuration attr_accessor :format, :api_key, :api_key_prefix, :username, :password, :access_token, :scheme, :host, :base_path, :user_agent, :logger, :inject_format, :force_ending_format, :camelize_params, :user_agent, :verify_ssl # Defaults go in here.. def initialize @format = 'json' @scheme = 'https' @host = '' @base_path = '/' @user_agent = "ruby-swagger-#{Swagger::VERSION}" @inject_format = false @force_ending_format = false @camelize_params = true # keys for API key authentication (param-name => api-key) @api_key = {} # api-key prefix for API key authentication, e.g. "Bearer" (param-name => api-key-prefix) @api_key_prefix = {} # whether to verify SSL certificate, default to true # Note: do NOT set it to false in production code, otherwise you would # face multiple types of cryptographic attacks @verify_ssl = true end end end end
Version data entries
11 entries across 11 versions & 1 rubygems