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