Class: Nexmo::OAS::Renderer::Presenters::Endpoint
- Inherits:
-
Object
- Object
- Nexmo::OAS::Renderer::Presenters::Endpoint
- Defined in:
- lib/nexmo/oas/renderer/presenters/endpoint.rb
Instance Method Summary collapse
- #formats ⇒ Object
-
#initialize(endpoint) ⇒ Endpoint
constructor
A new instance of Endpoint.
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
#formats ⇒ Object
14 15 16 |
# File 'lib/nexmo/oas/renderer/presenters/endpoint.rb', line 14 def formats @formats ||= ResponseFormat.new(@endpoint.responses).extract end |