Sha256: 53dc1d3247fc149e76b93988788acd06051143bef6aee8ade0774ef966ed1ba8
Contents?: true
Size: 643 Bytes
Versions: 9
Compression:
Stored size: 643 Bytes
Contents
module TheCity class PledgeListReader < ApiReader # Constructor. # # @param page The page number to get. Default is 1. # @param options A hash of options for requesting data from the server. # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data. def initialize(options = {}, cacher = nil) options[:page] ||= 1 #@class_key = "pledge_list_#{options[:page]}_{some_kind_of_md5_thing_here}" @url_data_path = "/pledges" @url_data_params = options # The object to store and load the cache. @cacher = cacher unless cacher.nil? end end end
Version data entries
9 entries across 9 versions & 1 rubygems