Class: Eli::RestApi::Response
- Inherits:
-
Struct
- Object
- Struct
- Eli::RestApi::Response
- Defined in:
- lib/eli/rest_api.rb
Overview
Lightweight response value object exposing status and the parsed body.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
18 19 20 |
# File 'lib/eli/rest_api.rb', line 18 def body @body end |
#status ⇒ Object
Returns the value of attribute status
18 19 20 |
# File 'lib/eli/rest_api.rb', line 18 def status @status end |