Sha256: 37c544c007a7afe7b4754730b3b8f8fff42f96b7ed52a80943cbee7004da4ae2
Contents?: true
Size: 558 Bytes
Versions: 21
Compression:
Stored size: 558 Bytes
Contents
module TheCity class FamilyReader < ApiReader # Constructor. # # @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) id = options[:id] || options[:external_id] # @class_key = "family_#{id}" @url_data_path = "/families/#{id}" @url_data_params = {} # The object to store and load the cache. @cacher = cacher unless cacher.nil? end end end
Version data entries
21 entries across 21 versions & 1 rubygems