Sha256: 4c2c37700210b0cf11966ed1b4058a72094c8deecb5dd8df8603da0ec6e6cb5c

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

module FbGraph
  module Connections
    module TestUsers
      def test_users(options = {})
        options[:access_token] ||= self.access_token || get_access_token(options[:secret])
        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 || get_access_token(options[:secret])
        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

5 entries across 5 versions & 1 rubygems

Version Path
fb_graph-1.8.5 lib/fb_graph/connections/test_users.rb
fb_graph-1.8.4 lib/fb_graph/connections/test_users.rb
fb_graph-1.8.3 lib/fb_graph/connections/test_users.rb
fb_graph-1.8.2 lib/fb_graph/connections/test_users.rb
fb_graph-1.8.1 lib/fb_graph/connections/test_users.rb