Class: Datadog::Transport::IO::Response
- Inherits:
-
Object
- Object
- Datadog::Transport::IO::Response
- Includes:
- 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.
Instance Method Summary collapse
-
#initialize(result) ⇒ Response
constructor
A new instance of Response.
- #ok? ⇒ Boolean
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
#result ⇒ Object (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
17 18 19 |
# File 'lib/ddtrace/transport/io/response.rb', line 17 def ok? true end |