Module: FbGraph::Connections::Checkins
Instance Method Summary collapse
Instance Method Details
#checkin!(options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/fb_graph/connections/checkins.rb', line 13 def checkin!( = {}) checkin = post .merge(:connection => :checkins) Checkin.new checkin[:id], .merge(checkin).merge( :access_token => [:access_token] || self.access_token ) end |
#checkins(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/fb_graph/connections/checkins.rb', line 4 def checkins( = {}) checkins = self.connection :checkins, checkins.map! do |checkin| Checkin.new checkin[:id], checkin.merge( :access_token => [:access_token] || self.access_token ) end end |