Class: OpenAPIRest::ApiConfig
- Inherits:
-
Object
- Object
- OpenAPIRest::ApiConfig
- Defined in:
- lib/openapi_rest/api_config.rb
Overview
Api doc config based on OpenAPI specs
Instance Attribute Summary collapse
-
#document ⇒ Object
Returns the value of attribute document.
Instance Method Summary collapse
-
#initialize(user_config = {}) ⇒ ApiConfig
constructor
A new instance of ApiConfig.
Constructor Details
#initialize(user_config = {}) ⇒ ApiConfig
Returns a new instance of ApiConfig.
8 9 10 |
# File 'lib/openapi_rest/api_config.rb', line 8 def initialize(user_config = {}) self.document = user_config[:document] end |
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document.
6 7 8 |
# File 'lib/openapi_rest/api_config.rb', line 6 def document @document end |