class Footrest::RaiseFootrestErrors

Constants

ERROR_MAP

Public Instance Methods

on_complete(response) click to toggle source
# File lib/footrest/http_error.rb, line 86
def on_complete(response)
  key = response[:status].to_i
  raise ERROR_MAP[key].new(response) if ERROR_MAP.has_key? key
end