Sha256: 61cbcf9affe20f236b144e1c57128765b4c4e771b6f8c119583502dc059a717c

Contents?: true

Size: 619 Bytes

Versions: 37

Compression:

Stored size: 619 Bytes

Contents

module FbGraph
  module Connections
    module TestUsers
      def test_users(options = {})
        options[:access_token] ||= self.access_token
        test_users = self.connection(:accounts, options.merge(:connection_scope => 'test-users'))
        test_users.map! do |test_user|
          TestUser.new(test_user[:id], test_user)
        end
      end

      def test_user!(options = {})
        options[:access_token] ||= self.access_token
        test_user = post(options.merge(:connection => :accounts, :connection_scope => 'test-users'))
        TestUser.new(test_user[:id], test_user)
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fb_graph-2.2.6 lib/fb_graph/connections/test_users.rb
fb_graph-2.2.5 lib/fb_graph/connections/test_users.rb
fb_graph-2.2.4 lib/fb_graph/connections/test_users.rb
fb_graph-2.2.3 lib/fb_graph/connections/test_users.rb
fb_graph-2.2.2 lib/fb_graph/connections/test_users.rb
fb_graph-2.2.1 lib/fb_graph/connections/test_users.rb
fb_graph-2.2.0 lib/fb_graph/connections/test_users.rb
fb_graph-2.2.0.beta lib/fb_graph/connections/test_users.rb
fb_graph-2.2.0.alpha2 lib/fb_graph/connections/test_users.rb
fb_graph-2.2.0.alpha lib/fb_graph/connections/test_users.rb
fb_graph-2.1.13 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.12 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.11 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.10 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.9 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.8 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.7 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.6 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.5 lib/fb_graph/connections/test_users.rb
fb_graph-2.1.4 lib/fb_graph/connections/test_users.rb