Sha256: 0e296fbdd7b4c07f3c4a38aca81af43a035d6fa10c685efcb319e3116425e374

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

module TheCity

  class GroupAddressListReader < ApiReader

    # Constructor.
    #
    # @param options A hash of options for requesting data from the server.
    #                :: group_id is required
    # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data.
    def initialize(options = {}, cacher = nil) 
      page = options[:page] || 1
      group_id = options[:group_id]
      @class_key = "groups_#{group_id}_addresses"   
      @url_data_path = "/groups/#{group_id}/addresses"
      @url_data_params = {:page => page}
      
      # 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/group_address_list_reader.rb
the-city-admin-0.1.3 lib/readers/group_address_list_reader.rb
the-city-admin-0.1.2 lib/readers/group_address_list_reader.rb
the-city-admin-0.1.1 lib/readers/group_address_list_reader.rb
the-city-admin-0.1.0 lib/readers/group_address_list_reader.rb