Class: TheCity::CheckinReader

Inherits:
ApiReader show all
Defined in:
lib/readers/checkin_reader.rb

Instance Attribute Summary

Attributes inherited from ApiReader

#headers

Instance Method Summary collapse

Methods inherited from ApiReader

#load_feed, #rate_limit, #rate_limit_remaining

Constructor Details

#initialize(checkin_id, options = {}, cacher = nil) ⇒ CheckinReader

Constructor.

Parameters:

  • checkin_id

    The ID of the checkin to load.

  • options (optional) (defaults to: {})

    Options for including more information.

  • cacher (CacheAdapter) (defaults to: nil)

    (optional) The cacher to be used to cache data.



10
11
12
13
14
15
16
# File 'lib/readers/checkin_reader.rb', line 10

def initialize(checkin_id, options = {}, cacher = nil)
  #@class_key = "checkin_#{tag_id}"   
  @url_data_path = "/checkins/#{tag_id}"
  
  # The object to store and load the cache.
  @cacher = cacher unless cacher.nil?    
end