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