Sha256: 9e0accc17a27e6ba1fb32aa05f740b89840a63b331758e6d33557f477710b75d
Contents?: true
Size: 668 Bytes
Versions: 12
Compression:
Stored size: 668 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 = options # The object to store and load the cache. @cacher = cacher unless cacher.nil? end end end
Version data entries
12 entries across 12 versions & 1 rubygems