Sha256: b631272e25d87b7079d4884f95aa2ecea758731397c2fc655c71933a6f7c5c01

Contents?: true

Size: 516 Bytes

Versions: 38

Compression:

Stored size: 516 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[:id], user.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
fb_graph-2.2.2 lib/fb_graph/connections/participants.rb
fb_graph-2.2.1 lib/fb_graph/connections/participants.rb
fb_graph-2.2.0 lib/fb_graph/connections/participants.rb
fb_graph-2.2.0.beta lib/fb_graph/connections/participants.rb
fb_graph-2.2.0.alpha2 lib/fb_graph/connections/participants.rb
fb_graph-2.2.0.alpha lib/fb_graph/connections/participants.rb
fb_graph-2.1.13 lib/fb_graph/connections/participants.rb
fb_graph-2.1.12 lib/fb_graph/connections/participants.rb
fb_graph-2.1.11 lib/fb_graph/connections/participants.rb
fb_graph-2.1.10 lib/fb_graph/connections/participants.rb
fb_graph-2.1.9 lib/fb_graph/connections/participants.rb
fb_graph-2.1.8 lib/fb_graph/connections/participants.rb
fb_graph-2.1.7 lib/fb_graph/connections/participants.rb
fb_graph-2.1.6 lib/fb_graph/connections/participants.rb
fb_graph-2.1.5 lib/fb_graph/connections/participants.rb
fb_graph-2.1.4 lib/fb_graph/connections/participants.rb
fb_graph-2.1.3 lib/fb_graph/connections/participants.rb
fb_graph-2.1.2 lib/fb_graph/connections/participants.rb
fb_graph-2.1.1 lib/fb_graph/connections/participants.rb
fb_graph-2.1.0 lib/fb_graph/connections/participants.rb