Class: Nexmo::OAS::Renderer::Presenters::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/nexmo/oas/renderer/presenters/endpoint.rb

Instance Method Summary collapse

Constructor Details

#initialize(endpoint) ⇒ Endpoint

Returns a new instance of Endpoint.



10
11
12
# File 'lib/nexmo/oas/renderer/presenters/endpoint.rb', line 10

def initialize(endpoint)
  @endpoint = endpoint
end

Instance Method Details

#formatsObject



14
15
16
# File 'lib/nexmo/oas/renderer/presenters/endpoint.rb', line 14

def formats
  @formats ||= ResponseFormat.new(@endpoint.responses).extract
end