Sha256: cb7e8d666e311248ff08be98f3ec42d95359f0fcc819778c9f39af7799485a07
Contents?: true
Size: 569 Bytes
Versions: 21
Compression:
Stored size: 569 Bytes
Contents
module TheCity class AddressReader < ApiReader # Constructor. # # @param address_id The ID of the address to load. # @param options (optional) Options for including more information. # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data. def initialize(address_id, options = {}, cacher = nil) #@class_key = "address_#{address_id}" @url_data_path = "/addresses/#{address_id}" # 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