Sha256: d59b5fcf660c04b2982e79e70a18a0c94e76f6fba47f31fca43cf905d12cf063

Contents?: true

Size: 553 Bytes

Versions: 5

Compression:

Stored size: 553 Bytes

Contents

module TheCity

  class RoleListReader < ApiReader

    # Constructor.
    #
    # @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(options = {}, cacher = nil)
      page = options[:page] || 1 
      @class_key = "role_list_#{page}"   
      @url_data_path = "/roles"
      @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/role_list_reader.rb
the-city-admin-0.1.3 lib/readers/role_list_reader.rb
the-city-admin-0.1.2 lib/readers/role_list_reader.rb
the-city-admin-0.1.1 lib/readers/role_list_reader.rb
the-city-admin-0.1.0 lib/readers/role_list_reader.rb