Sha256: 54f14097cf80b5539a05d4e01b9f79d1c08a5fb2125dbb70f8ecf0b46aff7f5a
Contents?: true
Size: 835 Bytes
Versions: 11
Compression:
Stored size: 835 Bytes
Contents
module TheCity class SkilledUserIdListReader < 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_id_list_#{page}" @url_data_path = "/skills/#{skill_id}/user_ids" @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(options) white_list = [:page] options.clone.delete_if { |key, value| !white_list.include?(key) } end end end
Version data entries
11 entries across 11 versions & 1 rubygems