class IronBank::FaradayMiddleware::Response::RaiseError
This class raises an exception based on the HTTP status code and the `success` flag (if present in the response) from Zuora.
Public Instance Methods
on_complete(env)
click to toggle source
# File lib/iron_bank/faraday_middleware/response/raise_error.rb, line 12 def on_complete(env) (error = IronBank::Error.from_response(env.response)) && raise(error) end