Class: SwaggerDocsGenerator::ConfigurationInfo
- Inherits:
-
Object
- Object
- SwaggerDocsGenerator::ConfigurationInfo
- Defined in:
- lib/swagger_docs_generator/configuration/configuration_info.rb
Overview
# Information element
Create a Hash element for information to API doc.
Instance Attribute Summary collapse
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#description ⇒ Object
Returns the value of attribute description.
-
#license ⇒ Object
Returns the value of attribute license.
-
#terms_of_service ⇒ Object
Returns the value of attribute terms_of_service.
-
#title ⇒ Object
Returns the value of attribute title.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ ConfigurationInfo
constructor
Initialize required element.
Constructor Details
#initialize ⇒ ConfigurationInfo
Initialize required element
15 16 17 18 |
# File 'lib/swagger_docs_generator/configuration/configuration_info.rb', line 15 def initialize @title = 'Title Example API' @version = '1.0.0' end |
Instance Attribute Details
#contact ⇒ Object
Returns the value of attribute contact.
11 12 13 |
# File 'lib/swagger_docs_generator/configuration/configuration_info.rb', line 11 def contact @contact end |
#description ⇒ Object
Returns the value of attribute description.
11 12 13 |
# File 'lib/swagger_docs_generator/configuration/configuration_info.rb', line 11 def description @description end |
#license ⇒ Object
Returns the value of attribute license.
11 12 13 |
# File 'lib/swagger_docs_generator/configuration/configuration_info.rb', line 11 def license @license end |
#terms_of_service ⇒ Object
Returns the value of attribute terms_of_service.
11 12 13 |
# File 'lib/swagger_docs_generator/configuration/configuration_info.rb', line 11 def terms_of_service @terms_of_service end |
#title ⇒ Object
Returns the value of attribute title.
11 12 13 |
# File 'lib/swagger_docs_generator/configuration/configuration_info.rb', line 11 def title @title end |
#version ⇒ Object
Returns the value of attribute version.
11 12 13 |
# File 'lib/swagger_docs_generator/configuration/configuration_info.rb', line 11 def version @version end |