Sha256: 6f729c9fa92e5e329ca32889bd7a0a714893c2381cd95a86fd0187c647fb6aa4

Contents?: true

Size: 394 Bytes

Versions: 15

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

require_relative './response_format'

module Nexmo
  module OAS
    module Renderer
      module Presenters
        class Endpoint
          def initialize(endpoint)
            @endpoint = endpoint
          end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nexmo-oas-renderer-2.7.2 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.7.1 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.7.0 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.6.0 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.5.0 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.4.1 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.4.0 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.3.0 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.2.0 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.1.3 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.1.2 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.1.1 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.1.0 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.0.1 lib/nexmo/oas/renderer/presenters/endpoint.rb
nexmo-oas-renderer-2.0.0 lib/nexmo/oas/renderer/presenters/endpoint.rb