Class: Tpaga::Swagger::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Defaults go in here..



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

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)
  @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

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def api_key
  @api_key
end

#api_key_prefixObject

Returns the value of attribute api_key_prefix.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def api_key_prefix
  @api_key_prefix
end

#auth_tokenObject

Returns the value of attribute auth_token.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def auth_token
  @auth_token
end

#base_pathObject

Returns the value of attribute base_path.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def base_path
  @base_path
end

#camelize_paramsObject

Returns the value of attribute camelize_params.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def camelize_params
  @camelize_params
end

#force_ending_formatObject

Returns the value of attribute force_ending_format.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def force_ending_format
  @force_ending_format
end

#formatObject

Returns the value of attribute format.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def format
  @format
end

#hostObject

Returns the value of attribute host.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def host
  @host
end

#inject_formatObject

Returns the value of attribute inject_format.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def inject_format
  @inject_format
end

#loggerObject

Returns the value of attribute logger.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def logger
  @logger
end

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def password
  @password
end

#schemeObject

Returns the value of attribute scheme.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def scheme
  @scheme
end

#user_agentObject

Returns the value of attribute user_agent.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def user_agent
  @user_agent
end

#usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def username
  @username
end

#verify_sslObject

Returns the value of attribute verify_ssl.



4
5
6
# File 'lib/tpaga/swagger/configuration.rb', line 4

def verify_ssl
  @verify_ssl
end