class AirbnbApi::Util::ErrorHandling

Constants

ERROR_MAP

Public Instance Methods

on_complete(response) click to toggle source
# File lib/airbnb_api/util/error_handling.rb, line 17
def on_complete(response)
  key = response[:status].to_i
  raise ERROR_MAP[key], response if ERROR_MAP.key? key
end