Class: Datadog::Transport::IO::Response
- Inherits:
-
Object
- Object
- Datadog::Transport::IO::Response
- Includes:
- Response, Traces::Response
- Defined in:
- lib/ddtrace/transport/io/response.rb
Overview
Response from HTTP transport for traces
Direct Known Subclasses
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes included from Traces::Response
Instance Method Summary collapse
-
#initialize(result, trace_count = 1) ⇒ Response
constructor
A new instance of Response.
- #ok? ⇒ Boolean
Methods included from Response
#client_error?, #inspect, #internal_error?, #not_found?, #payload, #server_error?, #unsupported?
Constructor Details
#initialize(result, trace_count = 1) ⇒ Response
14 15 16 17 |
# File 'lib/ddtrace/transport/io/response.rb', line 14 def initialize(result, trace_count = 1) @result = result @trace_count = trace_count end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
11 12 13 |
# File 'lib/ddtrace/transport/io/response.rb', line 11 def result @result end |
Instance Method Details
#ok? ⇒ Boolean
19 20 21 |
# File 'lib/ddtrace/transport/io/response.rb', line 19 def ok? true end |