Sha256: d229a89490132d9f75c01ae72432322585165f33eb12b1ae81c61e2aec6dedef
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
module TheCity class SkilledUserListReader < ApiReader # Constructor. # # @param options A hash of options for requesting data from the server. # :: skill_id is required # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data. def initialize(options = {}, cacher = nil) options[:page] ||= 1 skill_id = options.delete(:skill_id) #@class_key = "skilled_user_list_#{page}" @url_data_path = "/skills/#{skill_id}/users" @url_data_params = white_list_options(options) # The object to store and load the cache. @cacher = cacher unless cacher.nil? end def white_list_options white_list = [:page] options.clone.delete_if { |key, value| !white_list.include?(key) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
the-city-admin-0.6.0 | lib/readers/skilled_user_list_reader.rb |