Class: Jsapi::Meta::Tag

Inherits:
Jsapi::Model::Base show all
Includes:
OpenAPI::Extensions
Defined in:
lib/jsapi/meta/tag.rb

Overview

Specifies a tag.

Instance Method Summary collapse

Methods included from OpenAPI::Extensions

included

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

#descriptionObject

:attr: description The description of the tag.



12
# File 'lib/jsapi/meta/tag.rb', line 12

attribute :description, String

#external_docsObject

:attr: external_docs The ExternalDocumentation object.



17
# File 'lib/jsapi/meta/tag.rb', line 17

attribute :external_docs, ExternalDocumentation

#nameObject

:attr: name The name of the tag.



22
# File 'lib/jsapi/meta/tag.rb', line 22

attribute :name, String

#to_openapiObject

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