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