Class: Jsapi::Meta::Tag
- Inherits:
-
Jsapi::Model::Base
- Object
- Jsapi::Model::Base
- Jsapi::Meta::Tag
- Includes:
- OpenAPI::Extensions
- Defined in:
- lib/jsapi/meta/tag.rb
Overview
Specifies a tag.
Instance Method Summary collapse
-
#description ⇒ Object
:attr: description The description of the tag.
-
#external_docs ⇒ Object
:attr: external_docs The ExternalDocumentation object.
-
#name ⇒ Object
:attr: name The name of the tag.
-
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI tag object.
Methods included from OpenAPI::Extensions
Methods inherited from Jsapi::Model::Base
#==, #errors, #initialize, #inspect, model_name, #respond_to_missing?
Constructor Details
This class inherits a constructor from Jsapi::Model::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Jsapi::Model::Base
Instance Method Details
#description ⇒ Object
:attr: description The description of the tag.
12 |
# File 'lib/jsapi/meta/tag.rb', line 12 attribute :description, String |
#external_docs ⇒ Object
:attr: external_docs The ExternalDocumentation object.
17 |
# File 'lib/jsapi/meta/tag.rb', line 17 attribute :external_docs, ExternalDocumentation |
#name ⇒ Object
:attr: name The name of the tag.
22 |
# File 'lib/jsapi/meta/tag.rb', line 22 attribute :name, String |
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI tag object.
25 26 27 28 29 30 31 |
# File 'lib/jsapi/meta/tag.rb', line 25 def to_openapi(*) with_openapi_extensions( name: name, description: description, externalDocs: external_docs&.to_openapi ) end |