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

Version Path
dwolla_swagger-1.0.13 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.12 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.11 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.10 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.9 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.8 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.7 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.6 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.5 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.4 lib/dwolla_swagger/swagger/configuration.rb
dwolla_swagger-1.0.3 lib/dwolla_swagger/swagger/configuration.rb