Sha256: 30e255aac918746007595a646ae089014cd0b3dea375fa412bdc78801eaa15c1

Contents?: true

Size: 508 Bytes

Versions: 7

Compression:

Stored size: 508 Bytes

Contents

module FbGraph2
  class Edge
    module TestUsers
      def test_users(params = {})
        users = self.edge :accounts, params, edge_scope: :'test-users'
        users.collect! do |user|
          TestUser.new(user[:id], user)
        end
      end

      def test_user!(params = {})
        user = self.post params, edge: :accounts, edge_scope: :'test-users'
        params.delete(:access_token) # so as not to keep app token
        TestUser.new(user[:id], user.merge(params))
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 lib/fb_graph2/edge/test_users.rb
fb_graph2-1.2.0 lib/fb_graph2/edge/test_users.rb
fb_graph2-1.1.1 lib/fb_graph2/edge/test_users.rb
fb_graph2-1.1.0 lib/fb_graph2/edge/test_users.rb
fb_graph2-1.0.1 lib/fb_graph2/edge/test_users.rb
fb_graph2-1.0.0 lib/fb_graph2/edge/test_users.rb
fb_graph2-0.9.1 lib/fb_graph2/edge/test_users.rb