Sha256: 8526bd42a1f680b59c291f9d63a459aefeebdc066323aa2cc96682dc5a196fd2

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

module FbGraph
  module Connections
    module Members
      def members(options = {})
        members = FbGraph::Collection.new(get(options.merge(:connection => 'members')))
        members.map! do |member|
          User.new(member.delete(:id), member.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-0.4.2 lib/fb_graph/connections/members.rb
fb_graph-0.4.1 lib/fb_graph/connections/members.rb
fb_graph-0.4.0 lib/fb_graph/connections/members.rb
fb_graph-0.3.0 lib/fb_graph/connections/members.rb