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