class Ohanakapa::Response::RaiseError
This class raises an Ohanakapa-flavored exception based on HTTP status codes returned by the API
Private Instance Methods
on_complete(response)
click to toggle source
# File lib/ohanakapa/response/raise_error.rb, line 14 def on_complete(response) if error = Ohanakapa::Error.from_response(response) raise error end end