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

Inherits:
Object
  • Object
show all
Includes:
Response
Defined in:
lib/ddtrace/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 Response

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

Constructor Details

#initialize(result) ⇒ Response

Returns a new instance of Response.



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

def initialize(result)
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



10
11
12
# File 'lib/ddtrace/transport/io/response.rb', line 10

def result
  @result
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/ddtrace/transport/io/response.rb', line 17

def ok?
  true
end