Sha256: 8b1a5f9ff0e0050a3a0b408250351ac7ee638d1376f474489aaef98224ca0e7a

Contents?: true

Size: 284 Bytes

Versions: 13

Compression:

Stored size: 284 Bytes

Contents

module FbGraph
  module Connections
    module Friends
      def friends(options = {})
        users = FbGraph::Collection.new(get(options.merge(:connection => 'friends')))
        users.map! do |user|
          User.new(user.delete(:id), user)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fb_graph-0.2.2 lib/fb_graph/connections/friends.rb
fb_graph-0.2.1 lib/fb_graph/connections/friends.rb
fb_graph-0.2.0 lib/fb_graph/connections/friends.rb
fb_graph-0.1.3 lib/fb_graph/connections/friends.rb
fb_graph-0.1.2 lib/fb_graph/connections/friends.rb
fb_graph-0.1.1 lib/fb_graph/connections/friends.rb
fb_graph-0.1.0 lib/fb_graph/connections/friends.rb
fb_graph-0.0.8 lib/fb_graph/connections/friends.rb
fb_graph-0.0.7 lib/fb_graph/connections/friends.rb
fb_graph-0.0.6 lib/fb_graph/connections/friends.rb
fb_graph-0.0.5 lib/fb_graph/connections/friends.rb
fb_graph-0.0.4 lib/fb_graph/connections/friends.rb
fb_graph-0.0.3 lib/fb_graph/connections/friends.rb