Class: Brainstem::ApiDocs::Formatters::OpenApiSpecification::Version2::EndpointCollectionFormatter
- Inherits:
-
AbstractFormatter
- Object
- AbstractFormatter
- Brainstem::ApiDocs::Formatters::OpenApiSpecification::Version2::EndpointCollectionFormatter
- Defined in:
- lib/brainstem/api_docs/formatters/open_api_specification/version_2/endpoint_collection_formatter.rb
Instance Attribute Summary collapse
-
#endpoint_collection ⇒ Object
Returns the value of attribute endpoint_collection.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(endpoint_collection, options = {}) ⇒ EndpointCollectionFormatter
constructor
A new instance of EndpointCollectionFormatter.
Methods inherited from AbstractFormatter
Methods included from Concerns::Optional
Constructor Details
#initialize(endpoint_collection, options = {}) ⇒ EndpointCollectionFormatter
Returns a new instance of EndpointCollectionFormatter.
16 17 18 19 20 21 |
# File 'lib/brainstem/api_docs/formatters/open_api_specification/version_2/endpoint_collection_formatter.rb', line 16 def initialize(endpoint_collection, = {}) self.endpoint_collection = endpoint_collection self.output = {} super end |
Instance Attribute Details
#endpoint_collection ⇒ Object
Returns the value of attribute endpoint_collection.
13 14 15 |
# File 'lib/brainstem/api_docs/formatters/open_api_specification/version_2/endpoint_collection_formatter.rb', line 13 def endpoint_collection @endpoint_collection end |
#output ⇒ Object
Returns the value of attribute output.
13 14 15 |
# File 'lib/brainstem/api_docs/formatters/open_api_specification/version_2/endpoint_collection_formatter.rb', line 13 def output @output end |
Instance Method Details
#call ⇒ Object
23 24 25 |
# File 'lib/brainstem/api_docs/formatters/open_api_specification/version_2/endpoint_collection_formatter.rb', line 23 def call format_endpoints! end |