Class: Datadog::DI::Transport::HTTP::Input::API::Spec Private

Inherits:
Core::Transport::HTTP::API::Spec show all
Defined in:
lib/datadog/di/transport/http/input.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Core::Transport::HTTP::API::Spec

#initialize

Constructor Details

This class inherits a constructor from Datadog::Core::Transport::HTTP::API::Spec

Instance Attribute Details

#inputObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



32
33
34
# File 'lib/datadog/di/transport/http/input.rb', line 32

def input
  @input
end

Instance Method Details

#send_input(env, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

API:

  • private



34
35
36
37
38
# File 'lib/datadog/di/transport/http/input.rb', line 34

def send_input(env, &block)
  raise Core::Transport::HTTP::API::Spec::EndpointNotDefinedError.new('input', self) if input.nil?

  input.call(env, &block)
end