class Faraday::Response::RaiseXboxLeadersError

Constants

ERROR_MAP

Bit crappy but at the moment there’s little to be done about it, I have suggested to vendor that the API use HTTP response codes

Public Instance Methods

on_complete(response) click to toggle source
# File lib/faraday/response/raise_xbox_leaders_error.rb, line 17
def on_complete(response)
  key = response[:body]['data']['message']
  raise ERROR_MAP[key].new(response) if ERROR_MAP.has_key? key
end