Sha256: ea4112155fd3eb0437d262e526e88f892e8dcccffb2936288c9f4d500f01f462

Contents?: true

Size: 1.29 KB

Versions: 19

Compression:

Stored size: 1.29 KB

Contents

module FbGraph
  class TestUser < Node
    include Connections::Accounts
    include Connections::Activities
    include Connections::Albums
    include Connections::Books
    include Connections::Checkins
    include Connections::Events
    include Connections::Feed
    include Connections::FriendLists
    include Connections::Friends
    include Connections::Groups
    include Connections::Home
    include Connections::Interests
    include Connections::Likes
    include Connections::Links
    include Connections::Movies
    include Connections::Music
    include Connections::Notes
    include Connections::Photos
    include Connections::Picture
    include Connections::Posts
    include Connections::Statuses
    include Connections::Tagged
    include Connections::Television
    include Connections::Videos

    attr_accessor :login_url

    def initialize(identifier, attributes = {})
      super
      @login_url = attributes[:login_url]
    end

    def friend!(test_user)
      post(
        :access_token => self.access_token,
        :connection => :friends,
        :connection_scope => test_user.identifier
      )
      test_user.send :post, {
        :access_token => test_user.access_token,
        :connection => :friends,
        :connection_scope => self.identifier
      }
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fb_graph-1.5.3 lib/fb_graph/test_user.rb
fb_graph-1.5.2 lib/fb_graph/test_user.rb
fb_graph-1.5.1 lib/fb_graph/test_user.rb
fb_graph-1.5.0 lib/fb_graph/test_user.rb
fb_graph-1.4.1 lib/fb_graph/test_user.rb
fb_graph-1.4.0 lib/fb_graph/test_user.rb
fb_graph-1.3.9 lib/fb_graph/test_user.rb
fb_graph-1.3.8 lib/fb_graph/test_user.rb
fb_graph-1.3.7 lib/fb_graph/test_user.rb
fb_graph-1.3.6 lib/fb_graph/test_user.rb
fb_graph-1.3.5 lib/fb_graph/test_user.rb
fb_graph-1.3.4 lib/fb_graph/test_user.rb
fb_graph-1.3.3 lib/fb_graph/test_user.rb
fb_graph-1.3.2 lib/fb_graph/test_user.rb
fb_graph-1.3.1 lib/fb_graph/test_user.rb
fb_graph-1.3.0 lib/fb_graph/test_user.rb
fb_graph-1.2.5 lib/fb_graph/test_user.rb
fb_graph-1.2.4 lib/fb_graph/test_user.rb
fb_graph-1.2.3 lib/fb_graph/test_user.rb