Sha256: bed705a8117ebff58c66702f89e94c33dd17658bbb6c2c499f6e71eb64a0272a

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

module SwaggerClient
  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 = 'http'
        @host = 'localhost:8080'
        @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

2 entries across 2 versions & 1 rubygems

Version Path
deployment-tracker-client-0.1.2 lib/swagger_client/swagger/configuration.rb
deployment-tracker-client-0.1.0 lib/swagger_client/swagger/configuration.rb