Sha256: c07c2c21d475fdcb1d3d888a689d3e08106e173908c21a2ef57829262689ce30

Contents?: true

Size: 626 Bytes

Versions: 5

Compression:

Stored size: 626 Bytes

Contents

module TheCity

  class UserFamilyListReader < ApiReader
    
    # Constructor.
    #
    # @param options A hash of options for requesting data from the server.
    #                :: user_id is required
    # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data.
    def initialize(options = {}, cacher = nil) 
      page = options[:page] || 1
      user_id = options[:user_id]
      @class_key = "users_#{user_id}_family"   
      @url_data_path = "/users/#{user_id}/family"
      
      # 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/user_family_list_reader.rb
the-city-admin-0.1.3 lib/readers/user_family_list_reader.rb
the-city-admin-0.1.2 lib/readers/user_family_list_reader.rb
the-city-admin-0.1.1 lib/readers/user_family_list_reader.rb
the-city-admin-0.1.0 lib/readers/user_family_list_reader.rb