Class: FbGraph2::TestUser

Inherits:
User show all
Defined in:
lib/fb_graph2/test_user.rb

Instance Attribute Summary

Attributes inherited from Node

#access_token, #id

Instance Method Summary collapse

Methods inherited from User

#initialize, me

Methods included from Searchable

search, #search

Methods included from Edge::Videos

#video!, #videos

Methods included from Edge::Television

#television

Methods included from Edge::TaggedPlaces

#tagged_places

Methods included from Edge::Tagged

#tagged

Methods included from Edge::TaggableFriends

#taggable_friends

Methods included from Edge::Scores

#score!, #scores, #unscore!

Methods included from Edge::Posts

#posts

Methods included from Edge::Pokes

#pokes

Methods included from Edge::Photos

#photo!, #photos

Methods included from Edge::Picture

#assign, #picture

Methods included from Edge::Permissions

#permissions, #revoke!

Methods included from Edge::PaymentTransactions

#payment_transactions

Methods included from Edge::Music

#music

Methods included from Edge::Movies

#movies

Methods included from Edge::Likes::LikerContext

#liked?, #likes

Methods included from Edge::InvitableFriends

#invitable_friends

Methods included from Edge::Interests

#interests

Methods included from Edge::Groups

#groups

Methods included from Edge::Games

#games

Methods included from Edge::Friends

#friend?, #friends

Methods included from Edge::FriendLists

#friend_lists

Methods included from Edge::Feed

#feed, #feed!

Methods included from Edge::Family

#family

Methods included from Edge::Events

#events

Methods included from Edge::Domains

#domains

Methods included from Edge::Books

#books

Methods included from Edge::AppRequests

#app_request!, #app_requests

Methods included from Edge::Albums

#album!, #albums

Methods included from Edge::Activities

#activities

Methods included from Edge::Achievements

#achievements

Methods included from Edge::Accounts

#accounts

Methods inherited from Node

#authenticate, #destroy, #edge, #edges, #fetch, #initialize, #update

Methods included from AttributeAssigner

#assign

Constructor Details

This class inherits a constructor from FbGraph2::User

Instance Method Details

#friend!(test_user) ⇒ Object



9
10
11
12
# File 'lib/fb_graph2/test_user.rb', line 9

def friend!(test_user)
  self.post({}, edge: :friends, edge_scope: test_user.id)
  test_user.post({}, edge: :friends, edge_scope: self.id)
end