Sha256: 20800ec3be9afcafde3100932374cb3946d528b2dff323e523303a652e0b46af

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

module FbGraph
  module Connections
    module Invited
      def invited(options = {})
        members = FbGraph::Collection.new(get(options.merge(:connection => 'invited')))
        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/invited.rb
fb_graph-0.4.1 lib/fb_graph/connections/invited.rb
fb_graph-0.4.0 lib/fb_graph/connections/invited.rb
fb_graph-0.3.0 lib/fb_graph/connections/invited.rb