Class: TpagaService::Swagger::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tpaga_service/swagger/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Defaults go in here..



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/tpaga_service/swagger/configuration.rb', line 8

def initialize
  @format = 'json'
  @scheme = 'https'
  @host = 'sandbox.tpaga.co'
  @base_path = '/api'
  #@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)
  @private_api_key = 'njba5fp5v3lserbeg9nikible8mstn8s'
  @public_api_key = 'e8tbtu6bdi1bae34h9nkipschq9heq0a'
  # 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

Instance Attribute Details

#base_pathObject

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



5
6
7
# File 'lib/tpaga_service/swagger/configuration.rb', line 5

def base_path
  @base_path
end

#formatObject

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



5
6
7
# File 'lib/tpaga_service/swagger/configuration.rb', line 5

def format
  @format
end

#hostObject

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



5
6
7
# File 'lib/tpaga_service/swagger/configuration.rb', line 5

def host
  @host
end

#inject_formatObject

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



5
6
7
# File 'lib/tpaga_service/swagger/configuration.rb', line 5

def inject_format
  @inject_format
end

#private_api_keyObject

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



5
6
7
# File 'lib/tpaga_service/swagger/configuration.rb', line 5

def private_api_key
  @private_api_key
end

#public_api_keyObject

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



5
6
7
# File 'lib/tpaga_service/swagger/configuration.rb', line 5

def public_api_key
  @public_api_key
end

#schemeObject

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



5
6
7
# File 'lib/tpaga_service/swagger/configuration.rb', line 5

def scheme
  @scheme
end