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

Version Path
the-city-admin-0.1.4 lib/readers/address_reader.rb
the-city-admin-0.1.3 lib/readers/address_reader.rb
the-city-admin-0.1.2 lib/readers/address_reader.rb
the-city-admin-0.1.1 lib/readers/address_reader.rb
the-city-admin-0.1.0 lib/readers/address_reader.rb