Class: Eazypi::License

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

Overview

OpenAPI spec InfoObject

Instance Method Summary collapse

Methods included from SpecObject

included, #initialize, #load

Instance Method Details

#to_openapi_specObject



12
13
14
15
16
17
18
# File 'lib/eazypi/license.rb', line 12

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