Exception: Hoolp::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Hoolp::ApiError
- Defined in:
- lib/hoolp/api_error.rb
Instance Method Summary collapse
-
#initialize(response_body) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(response_body) ⇒ ApiError
Returns a new instance of ApiError.
3 4 5 |
# File 'lib/hoolp/api_error.rb', line 3 def initialize(response_body) super(response_body.fetch("error")) end |