Class: Eazypi::Tag

Inherits:
Object
  • Object
show all
Includes:
SpecObject
Defined in:
lib/eazypi/tag.rb

Overview

OpenAPI spec Tag

Instance Method Summary collapse

Methods included from SpecObject

included, #initialize, #load

Instance Method Details

#to_openapi_specObject



11
12
13
14
15
16
# File 'lib/eazypi/tag.rb', line 11

def to_openapi_spec
  {
    "name" => name,
    "description" => description
  }.compact
end