Exception: Espago::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Espago::Error
- Defined in:
- lib/espago/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/espago/error.rb', line 6 def initialize(response) @status = response.status @body = response.body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/espago/error.rb', line 4 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/espago/error.rb', line 3 def status @status end |