Module: FbGraph::Connections::FormerParticipants
- Included in:
- Thread
- Defined in:
- lib/fb_graph/connections/former_participants.rb
Instance Method Summary collapse
Instance Method Details
#former_participants(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/fb_graph/connections/former_participants.rb', line 4 def former_participants( = {}) users = if @_former_participants_ && .blank? self.connection(:former_participants, .merge(:cached_collection => @_former_participants_)) else self.connection(:former_participants, ) end users.map! do |user| User.new(user.delete(:id), user.merge( :access_token => [:access_token] || self.access_token )) end end |