class Luchadeer::Middleware::ParseHTTPError

Public Instance Methods

on_complete(response) click to toggle source
# File lib/luchadeer/middleware/parse_http_error.rb, line 8
def on_complete(response)
  klass = Luchadeer::Error.http_errors[response.status.to_i]

  fail(klass.new) if klass
end