Class: TpagaService::Swagger::Configuration
- Inherits:
-
Object
- Object
- TpagaService::Swagger::Configuration
- Defined in:
- lib/tpaga_service/swagger/configuration.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
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.
-
#format ⇒ Object
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.
-
#host ⇒ Object
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.
-
#inject_format ⇒ Object
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.
-
#private_api_key ⇒ Object
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.
-
#public_api_key ⇒ Object
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.
-
#scheme ⇒ Object
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.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Defaults go in here..
Constructor Details
#initialize ⇒ Configuration
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_path ⇒ Object
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 |
#format ⇒ Object
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 |
#host ⇒ Object
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_format ⇒ Object
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_key ⇒ Object
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_key ⇒ Object
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 |
#scheme ⇒ Object
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 |