Module: Datadog::Core::Transport::Response
- Included in:
- HTTP::Adapters::Net::Response, HTTP::Adapters::Test::Response, InternalErrorResponse, Tracing::Transport::IO::Response
- Defined in:
- lib/datadog/core/transport/response.rb
Overview
Defines abstract response for transport operations
Instance Method Summary collapse
- #client_error? ⇒ Boolean
- #inspect ⇒ Object
- #internal_error? ⇒ Boolean
- #not_found? ⇒ Boolean
- #ok? ⇒ Boolean
- #payload ⇒ Object
- #server_error? ⇒ Boolean
- #unsupported? ⇒ Boolean
Instance Method Details
#client_error? ⇒ Boolean
24 25 26 |
# File 'lib/datadog/core/transport/response.rb', line 24 def client_error? nil end |
#inspect ⇒ Object
36 37 38 39 40 41 |
# File 'lib/datadog/core/transport/response.rb', line 36 def inspect "#{self.class} ok?:#{ok?} unsupported?:#{unsupported?}, " \ "not_found?:#{not_found?}, client_error?:#{client_error?}, " \ "server_error?:#{server_error?}, internal_error?:#{internal_error?}, " \ "payload:#{payload}" end |
#internal_error? ⇒ Boolean
32 33 34 |
# File 'lib/datadog/core/transport/response.rb', line 32 def internal_error? nil end |
#not_found? ⇒ Boolean
20 21 22 |
# File 'lib/datadog/core/transport/response.rb', line 20 def not_found? nil end |
#ok? ⇒ Boolean
12 13 14 |
# File 'lib/datadog/core/transport/response.rb', line 12 def ok? nil end |
#payload ⇒ Object
8 9 10 |
# File 'lib/datadog/core/transport/response.rb', line 8 def payload nil end |
#server_error? ⇒ Boolean
28 29 30 |
# File 'lib/datadog/core/transport/response.rb', line 28 def server_error? nil end |
#unsupported? ⇒ Boolean
16 17 18 |
# File 'lib/datadog/core/transport/response.rb', line 16 def unsupported? nil end |