Class: Swagger::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#auth_tokenObject

Returns the value of attribute auth_token.



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

def auth_token
  @auth_token
end

#base_pathObject

Returns the value of attribute base_path.



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

def base_path
  @base_path
end

#camelize_paramsObject

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_formatObject

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

#formatObject

Returns the value of attribute format.



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

def format
  @format
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#inject_formatObject

Returns the value of attribute inject_format.



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

def inject_format
  @inject_format
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#schemeObject

Returns the value of attribute scheme.



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

def scheme
  @scheme
end

#user_agentObject

Returns the value of attribute user_agent.



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

def user_agent
  @user_agent
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end