Sha256: 377ba2588c5a302620c0603e954a80cf7fa7c329e8120c28ecfe131521529281

Contents?: true

Size: 523 Bytes

Versions: 28

Compression:

Stored size: 523 Bytes

Contents

module FbGraph
  module Connections
    module Participants
      def participants(options = {})
        users = if @_participants_ && options.blank?
          self.connection(:participants, options.merge(:cached_collection => @_participants_))
        else
          self.connection(:participants, options)
        end
        users.map! do |user|
          User.new(user.delete(:id), user.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
fb_graph-1.8.0 lib/fb_graph/connections/participants.rb
fb_graph-1.8.0.alpha2 lib/fb_graph/connections/participants.rb
fb_graph-1.7.5 lib/fb_graph/connections/participants.rb
fb_graph-1.8.0.alpha lib/fb_graph/connections/participants.rb
fb_graph-1.7.4 lib/fb_graph/connections/participants.rb
fb_graph-1.7.3 lib/fb_graph/connections/participants.rb
fb_graph-1.7.2 lib/fb_graph/connections/participants.rb
fb_graph-1.7.1 lib/fb_graph/connections/participants.rb
fb_graph-1.7.0 lib/fb_graph/connections/participants.rb
fb_graph-1.7.0.alpha2 lib/fb_graph/connections/participants.rb
fb_graph-1.6.9 lib/fb_graph/connections/participants.rb
fb_graph-1.7.0.alpha lib/fb_graph/connections/participants.rb
fb_graph-1.6.8 lib/fb_graph/connections/participants.rb
fb_graph-1.6.7 lib/fb_graph/connections/participants.rb
fb_graph-1.6.5 lib/fb_graph/connections/participants.rb
fb_graph-1.6.4 lib/fb_graph/connections/participants.rb
fb_graph-1.6.3 lib/fb_graph/connections/participants.rb
fb_graph-1.6.2 lib/fb_graph/connections/participants.rb
fb_graph-1.6.1 lib/fb_graph/connections/participants.rb
fb_graph-1.6.0 lib/fb_graph/connections/participants.rb