Class: Datadog::Tracing::Transport::IO::Response

Inherits:
Object
  • Object
show all
Includes:
Core::Transport::Response
Defined in:
lib/datadog/tracing/transport/io/response.rb

Overview

Response from HTTP transport for traces

Direct Known Subclasses

Traces::Response

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Transport::Response

#client_error?, #inspect, #internal_error?, #not_found?, #payload, #server_error?, #unsupported?

Constructor Details

#initialize(result) ⇒ Response

Returns a new instance of Response.



16
17
18
# File 'lib/datadog/tracing/transport/io/response.rb', line 16

def initialize(result)
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



13
14
15
# File 'lib/datadog/tracing/transport/io/response.rb', line 13

def result
  @result
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/datadog/tracing/transport/io/response.rb', line 20

def ok?
  true
end