Sha256: 1f0aa5c087ebf3e75a185c6d3d8d75c59f32b65982c636675af3ad3015999746

Contents?: true

Size: 405 Bytes

Versions: 6

Compression:

Stored size: 405 Bytes

Contents

module FbGraph
  module Connections
    module Invited
      def invited(options = {})
        members = FbGraph::Collection.new(get(options.merge(:connection => 'invited')))
        members.map! do |member|
          if member[:category]
            Page.new(member.delete(:id), member)
          else
            User.new(member.delete(:id), member)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fb_graph-0.0.8 lib/fb_graph/connections/invited.rb
fb_graph-0.0.7 lib/fb_graph/connections/invited.rb
fb_graph-0.0.6 lib/fb_graph/connections/invited.rb
fb_graph-0.0.5 lib/fb_graph/connections/invited.rb
fb_graph-0.0.4 lib/fb_graph/connections/invited.rb
fb_graph-0.0.3 lib/fb_graph/connections/invited.rb