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