Class: Eazypi::Info

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

Overview

OpenAPI spec InfoObject

Instance Method Summary collapse

Methods included from SpecObject

included, #initialize, #load

Instance Method Details

#to_openapi_specObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/eazypi/info.rb', line 18

def to_openapi_spec
  {
    "title" => title,
    "summary" => summary,
    "description" => description,
    "termsOfService" => terms_of_service,
    "contact" => contact,
    "license" => license&.to_openapi_spec,
    "version" => version
  }.compact
end