Class: Ribose::Response::RaiseError
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- Ribose::Response::RaiseError
- Defined in:
- lib/ribose/response/raise_error.rb
Instance Method Summary collapse
Instance Method Details
#on_complete(response) ⇒ Object
6 7 8 9 10 |
# File 'lib/ribose/response/raise_error.rb', line 6 def on_complete(response) if error = Ribose::Error.from_response(response) raise error end end |