class QoolifeApi::ActiveResource::Errors

Public Instance Methods

from_hash(messages, save_cache = false)
from_hash_with_pre_processing(messages, save_cache = false) click to toggle source
# File lib/qoolife-api/errors.rb, line 3
def from_hash_with_pre_processing(messages, save_cache = false)
  new_messages = if messages['error'] == 'invalid_resource'
      messages['messages']
    else
      messages
    end

  from_hash_without_pre_processing(new_messages,save_cache)
end
Also aliased as: from_hash
from_hash_without_pre_processing(messages, save_cache = false)
Alias for: from_hash