Sha256: 3a12788febe6bdb89bcaa1c5a554be3d9afe3b421d6da448c022a73a071b82aa
Contents?: true
Size: 708 Bytes
Versions: 11
Compression:
Stored size: 708 Bytes
Contents
module TheCity class SkillListReader < 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) options[:page] ||= 1 #@class_key = "skill_list_#{page}" @url_data_path = "/skills" @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