module TheCity class UserAdminPrivilegeListReader < ApiReader # Constructor. # # @param options A hash of options for requesting data from the server. # :: user_id is required # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data. def initialize(options = {}, cacher = nil) page = options[:page] || 1 user_id = options[:user_id] @class_key = "users_#{user_id}_admin_privileges_#{page}" @url_data_path = "/users/#{user_id}/admin_privileges" @url_data_params = {:page => page} # The object to store and load the cache. @cacher = cacher unless cacher.nil? end end end