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

Included in:
API::Spec
Defined in:
lib/datadog/core/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.



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

def info
  @info
end

Instance Method Details

#send_info(env, &block) ⇒ Object



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

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

  info.call(env, &block)
end