Class: SwaggerYard::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
# File 'lib/swagger_yard/configuration.rb', line 7

def initialize
  self.swagger_version = "1.1"
  self.api_version = "0.1"
  self.enable = false
  self.reload = true
end

Instance Attribute Details

#api_base_pathObject

Returns the value of attribute api_base_path.



3
4
5
# File 'lib/swagger_yard/configuration.rb', line 3

def api_base_path
  @api_base_path
end

#api_pathObject

Returns the value of attribute api_path.



3
4
5
# File 'lib/swagger_yard/configuration.rb', line 3

def api_path
  @api_path
end

#api_versionObject

Returns the value of attribute api_version.



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

def api_version
  @api_version
end

#enableObject

Returns the value of attribute enable.



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

def enable
  @enable
end

#reloadObject

Returns the value of attribute reload.



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

def reload
  @reload
end

#swagger_spec_base_pathObject

Returns the value of attribute swagger_spec_base_path.



3
4
5
# File 'lib/swagger_yard/configuration.rb', line 3

def swagger_spec_base_path
  @swagger_spec_base_path
end

#swagger_versionObject

Returns the value of attribute swagger_version.



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

def swagger_version
  @swagger_version
end