Sha256: 8199eff70ee226a5267dec06b11dfea0a32e18b842354fc3bcb6ad65a4234d07

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

module DwollaSwagger
  module Swagger
    class Configuration
      attr_accessor :format, :api_key, :api_key_prefix, :username, :password, :auth_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

3 entries across 3 versions & 1 rubygems

Version Path
dwolla_swagger-1.0.2 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.1 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.0 lib/dwolla_swagger/swagger/configuration.rb