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