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