Module: Datadog::Core::Remote::Transport::HTTP::Negotiation::API::Spec

Included in:
API::Spec
Defined in:
lib/datadog/core/remote/transport/http/negotiation.rb

Overview

Extensions for HTTP API Spec

Defined Under Namespace

Classes: NoNegotiationEndpointDefinedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#infoObject

Returns the value of attribute info.



61
62
63
# File 'lib/datadog/core/remote/transport/http/negotiation.rb', line 61

def info
  @info
end

Instance Method Details

#send_info(env, &block) ⇒ Object



67
68
69
70
71
# File 'lib/datadog/core/remote/transport/http/negotiation.rb', line 67

def send_info(env, &block)
  raise NoNegotiationEndpointDefinedError, self if info.nil?

  info.call(env, &block)
end