Exception: WorldMonitor::APIError
- Defined in:
- lib/worldmonitor.rb
Overview
A REST or transport-level failure (non-2xx HTTP response).
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(status, body) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
51 52 53 |
# File 'lib/worldmonitor.rb', line 51 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
51 52 53 |
# File 'lib/worldmonitor.rb', line 51 def status @status end |