Class: Datadog::Tracing::Transport::IO::Response
- Inherits:
-
Object
- Object
- Datadog::Tracing::Transport::IO::Response
- Includes:
- Core::Transport::Response
- Defined in:
- lib/datadog/tracing/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.
Instance Method Summary collapse
-
#initialize(result) ⇒ Response
constructor
A new instance of Response.
- #ok? ⇒ Boolean
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
#result ⇒ Object (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
20 21 22 |
# File 'lib/datadog/tracing/transport/io/response.rb', line 20 def ok? true end |