Module: Datadog::Core::Transport::Response

Overview

Defines abstract response for transport operations

Instance Method Summary collapse

Instance Method Details

#client_error?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/datadog/core/transport/response.rb', line 24

def client_error?
  nil
end

#inspectObject



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

Returns:

  • (Boolean)


32
33
34
# File 'lib/datadog/core/transport/response.rb', line 32

def internal_error?
  nil
end

#not_found?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/datadog/core/transport/response.rb', line 20

def not_found?
  nil
end

#ok?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/datadog/core/transport/response.rb', line 12

def ok?
  nil
end

#payloadObject



8
9
10
# File 'lib/datadog/core/transport/response.rb', line 8

def payload
  nil
end

#server_error?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/datadog/core/transport/response.rb', line 28

def server_error?
  nil
end

#unsupported?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/datadog/core/transport/response.rb', line 16

def unsupported?
  nil
end