class Datadog::Transport::HTTP::API::Endpoint

Endpoint

Attributes

path[R]
verb[R]

Public Class Methods

new(verb, path) click to toggle source
# File lib/ddtrace/transport/http/api/endpoint.rb, line 14
def initialize(verb, path)
  @verb = verb
  @path = path
end

Public Instance Methods

call(env) { |env| ... } click to toggle source
# File lib/ddtrace/transport/http/api/endpoint.rb, line 19
def call(env)
  env.verb = verb
  env.path = path
  yield(env)
end