Class: Eazypi::Info
Overview
OpenAPI spec InfoObject
Instance Method Summary collapse
Methods included from SpecObject
Instance Method Details
#to_openapi_spec ⇒ Object
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 |