Sha256: 610a680a36c51b3dce0bfd1afc9309a1d001c470f0781466877a961959ebb7d7
Contents?: true
Size: 557 Bytes
Versions: 5
Compression:
Stored size: 557 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
5 entries across 5 versions & 1 rubygems