Sha256: 380b305159bfb1c29e4066e13fab40634b826da8d36e1f08e4ee3ebf5610522d
Contents?: true
Size: 489 Bytes
Versions: 20
Compression:
Stored size: 489 Bytes
Contents
module TheCity class DonationReader < ApiReader # Constructor. # # <b>donation_id</b> The ID of the donation to load. # <b>CacheAdapter cacher</b> (optional) The cacher to be used to cache data. def initialize(donation_id, cacher = nil) #@class_key = "donations_#{donation_id}" @url_data_path = "/donations/#{donation_id}" # The object to store and load the cache. @cacher = cacher unless cacher.nil? end end end
Version data entries
20 entries across 20 versions & 1 rubygems