Class: TheCity::UserCountReader
- Defined in:
- lib/readers/user_count_reader.rb
Instance Attribute Summary
Attributes inherited from ApiReader
Instance Method Summary collapse
-
#initialize(options = {}, cacher = nil) ⇒ UserCountReader
constructor
Constructor.
Methods inherited from ApiReader
#load_feed, #rate_limit, #rate_limit_remaining
Constructor Details
#initialize(options = {}, cacher = nil) ⇒ UserCountReader
18 19 20 21 22 23 24 25 26 |
# File 'lib/readers/user_count_reader.rb', line 18 def initialize( = {}, cacher = nil) #@class_key = "users_count_#{options[:filter] || ''}" @url_data_path = "/users/count" @url_data_params = {:filter => [:filter] || ''} # The object to store and load the cache. @cacher = cacher unless cacher.nil? end |