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

Version Path
the-city-admin-0.7.1 lib/readers/user_reader.rb
the-city-admin-0.7.0 lib/readers/user_reader.rb
the-city-admin-0.6.9 lib/readers/user_reader.rb
the-city-admin-0.6.8 lib/readers/user_reader.rb
the-city-admin-0.6.7 lib/readers/user_reader.rb
the-city-admin-0.6.6 lib/readers/user_reader.rb
the-city-admin-0.6.5 lib/readers/user_reader.rb
the-city-admin-0.6.4 lib/readers/user_reader.rb
the-city-admin-0.6.3 lib/readers/user_reader.rb
the-city-admin-0.6.2 lib/readers/user_reader.rb
the-city-admin-0.6.1 lib/readers/user_reader.rb
the-city-admin-0.6.0 lib/readers/user_reader.rb