Class: Kilden::Transport::Response Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/kilden/transport.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



13
14
15
# File 'lib/kilden/transport.rb', line 13

def body
  @body
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



13
14
15
# File 'lib/kilden/transport.rb', line 13

def error
  @error
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



13
14
15
# File 'lib/kilden/transport.rb', line 13

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



13
14
15
# File 'lib/kilden/transport.rb', line 13

def status
  @status
end

Instance Method Details

#network_error?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


14
15
16
# File 'lib/kilden/transport.rb', line 14

def network_error?
  status.zero?
end