Class: TheCity::UserReader
- Defined in:
- lib/readers/user_reader.rb
Instance Attribute Summary
Attributes inherited from ApiReader
Instance Method Summary collapse
-
#initialize(user_id, options = {}, cacher = nil) ⇒ UserReader
constructor
Constructor.
Methods inherited from ApiReader
#load_feed, #rate_limit, #rate_limit_remaining
Constructor Details
#initialize(user_id, options = {}, cacher = nil) ⇒ UserReader
Constructor.
11 12 13 14 15 16 17 18 |
# File 'lib/readers/user_reader.rb', line 11 def initialize(user_id, = {}, cacher = nil) #@class_key = "users_#{user_id}" @url_data_path = "/users/#{user_id}" @url_data_params = # The object to store and load the cache. @cacher = cacher unless cacher.nil? end |