Sha256: 3b687edf8806508e2621f82a91bc18ec94efda50cbc143442e603953dd056447
Contents?: true
Size: 692 Bytes
Versions: 5
Compression:
Stored size: 692 Bytes
Contents
module TheCity class UserReader < ApiReader # Constructor. # # @param user_id The ID of the user to load. # @param options (optional) Options for including more information. # 'include_custom_fields' => true/false. Default is false. # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data. def initialize(user_id, options = {}, cacher = nil) @class_key = "users_#{user_id}" @url_data_path = "/users/#{user_id}" @url_data_params = {:include_custom_fields => true} # 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