Sha256: 9bb9acb356ff739c226aecfe8d764d37a9af43da624f8d5b5856abb50919abbe

Contents?: true

Size: 446 Bytes

Versions: 43

Compression:

Stored size: 446 Bytes

Contents

require 'json'

module Datadog
  module Transport
    module HTTP
      module API
        # Endpoint
        class Endpoint
          attr_reader \
            :verb,
            :path

          def initialize(verb, path)
            @verb = verb
            @path = path
          end

          def call(env)
            env.verb = verb
            env.path = path
            yield(env)
          end
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
ddtrace-1.10.1 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-1.10.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.51.1 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.51.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.50.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.49.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.48.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.47.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.46.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.45.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.44.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.43.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.42.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.41.0 lib/ddtrace/transport/http/api/endpoint.rb
ls-trace-0.2.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.40.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.39.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.38.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.37.0 lib/ddtrace/transport/http/api/endpoint.rb
ddtrace-0.36.0 lib/ddtrace/transport/http/api/endpoint.rb