Class: SwaggerYard::Configuration
- Inherits:
-
Object
- Object
- SwaggerYard::Configuration
- Defined in:
- lib/swagger_yard/configuration.rb
Instance Attribute Summary collapse
-
#api_base_path ⇒ Object
Returns the value of attribute api_base_path.
-
#api_path ⇒ Object
Returns the value of attribute api_path.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#enable ⇒ Object
Returns the value of attribute enable.
-
#reload ⇒ Object
Returns the value of attribute reload.
-
#swagger_spec_base_path ⇒ Object
Returns the value of attribute swagger_spec_base_path.
-
#swagger_version ⇒ Object
Returns the value of attribute swagger_version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_path ⇒ Object
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_path ⇒ Object
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_version ⇒ Object
Returns the value of attribute api_version.
4 5 6 |
# File 'lib/swagger_yard/configuration.rb', line 4 def api_version @api_version end |
#enable ⇒ Object
Returns the value of attribute enable.
5 6 7 |
# File 'lib/swagger_yard/configuration.rb', line 5 def enable @enable end |
#reload ⇒ Object
Returns the value of attribute reload.
5 6 7 |
# File 'lib/swagger_yard/configuration.rb', line 5 def reload @reload end |
#swagger_spec_base_path ⇒ Object
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_version ⇒ Object
Returns the value of attribute swagger_version.
4 5 6 |
# File 'lib/swagger_yard/configuration.rb', line 4 def swagger_version @swagger_version end |