Class: Kilden::Transport::Response Private
- Inherits:
-
Struct
- Object
- Struct
- Kilden::Transport::Response
- 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
-
#body ⇒ Object
Returns the value of attribute body.
-
#error ⇒ Object
Returns the value of attribute error.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #network_error? ⇒ Boolean private
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
13 14 15 |
# File 'lib/kilden/transport.rb', line 13 def body @body end |
#error ⇒ Object
Returns the value of attribute error
13 14 15 |
# File 'lib/kilden/transport.rb', line 13 def error @error end |
#headers ⇒ Object
Returns the value of attribute headers
13 14 15 |
# File 'lib/kilden/transport.rb', line 13 def headers @headers end |
#status ⇒ Object
Returns the value of attribute 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.
14 15 16 |
# File 'lib/kilden/transport.rb', line 14 def network_error? status.zero? end |