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