Class: Praxis::Docs::OpenApi::TagObject
- Inherits:
-
Object
- Object
- Praxis::Docs::OpenApi::TagObject
- Defined in:
- lib/praxis/docs/open_api/tag_object.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(name:, description:) ⇒ TagObject
constructor
A new instance of TagObject.
Constructor Details
#initialize(name:, description:) ⇒ TagObject
Returns a new instance of TagObject.
9 10 11 12 |
# File 'lib/praxis/docs/open_api/tag_object.rb', line 9 def initialize(name:, description:) @name = name @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'lib/praxis/docs/open_api/tag_object.rb', line 7 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/praxis/docs/open_api/tag_object.rb', line 7 def name @name end |
Instance Method Details
#dump ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/praxis/docs/open_api/tag_object.rb', line 14 def dump h = description ? { description: description } : {} h.merge( name: name # externalDocs: ???, ) end |