class Faraday::Response::RaiseRamcoError

Constants

ERROR_MAP

Public Instance Methods

on_complete(response) click to toggle source
# File lib/ramco/errors.rb, line 72
def on_complete(response)
  key = response.body["ResponseCode"].to_i
  raise ERROR_MAP[key].new(response) if ERROR_MAP.has_key? key
end