Class: Eazypi::Server

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

Overview

OpenAPI spec ServerObject

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/server.rb', line 11

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