Class: Swagger::Configuration
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#camelize_params ⇒ Object
Returns the value of attribute camelize_params.
-
#force_ending_format ⇒ Object
Returns the value of attribute force_ending_format.
-
#format ⇒ Object
Returns the value of attribute format.
-
#host ⇒ Object
Returns the value of attribute host.
-
#inject_format ⇒ Object
Returns the value of attribute inject_format.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#password ⇒ Object
Returns the value of attribute password.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Defaults go in here..
Constructor Details
#initialize ⇒ Configuration
Defaults go in here..
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/swagger/configuration.rb', line 9 def initialize @format = 'json' @scheme = 'http' @host = 'petstore.swagger.io' @base_path = '/v2' @user_agent = "ruby-swagger-#{Swagger::VERSION}" @inject_format = false @force_ending_format = false @camelize_params = true end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def api_key @api_key end |
#auth_token ⇒ Object
Returns the value of attribute auth_token.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def auth_token @auth_token end |
#base_path ⇒ Object
Returns the value of attribute base_path.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def base_path @base_path end |
#camelize_params ⇒ Object
Returns the value of attribute camelize_params.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def camelize_params @camelize_params end |
#force_ending_format ⇒ Object
Returns the value of attribute force_ending_format.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def force_ending_format @force_ending_format end |
#format ⇒ Object
Returns the value of attribute format.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def format @format end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def host @host end |
#inject_format ⇒ Object
Returns the value of attribute inject_format.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def inject_format @inject_format end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def logger @logger end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def password @password end |
#scheme ⇒ Object
Returns the value of attribute scheme.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def scheme @scheme end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def user_agent @user_agent end |
#username ⇒ Object
Returns the value of attribute username.
6 7 8 |
# File 'lib/swagger/configuration.rb', line 6 def username @username end |