Sha256: 40e5367bfdc5e90a0c2a47a9b4b6c5b425cef8d27e944e8763e6491e740a0ccb

Contents?: true

Size: 685 Bytes

Versions: 5

Compression:

Stored size: 685 Bytes

Contents

module TheCity

  class TagGroupListReader < ApiReader

    # Constructor.
    #
    # @param tag_id The tag id to get the groups for. 
    # @param page The page number to get.  Default is 1.
    # @param options A hash of options for requesting data from the server.
    # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data.
    def initialize(tag_id, page = 1, options = {}, cacher = nil) 
      @class_key = "tag_#{tag_id}_group_list_#{page}"   
      @url_data_path = "/tags/#{tag_id}/groups"
      @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/tag_group_list_reader.rb
the-city-admin-0.1.3 lib/readers/tag_group_list_reader.rb
the-city-admin-0.1.2 lib/readers/tag_group_list_reader.rb
the-city-admin-0.1.1 lib/readers/tag_group_list_reader.rb
the-city-admin-0.1.0 lib/readers/tag_group_list_reader.rb