Class: GSGraph::TestUser

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

Instance Attribute Summary collapse

Attributes inherited from Node

#access_token, #endpoint, #identifier, #raw_attributes

Instance Method Summary collapse

Methods inherited from User

me

Methods included from Searchable

search, #search, search_query_param

Methods included from OpenGraph::UserContext

#og_action!, #og_actions

Methods included from Connections::Videos

#video!, #videos

Methods included from Connections::UserLikes

#like?, #likes

Methods included from Connections::UserAchievements

#achieve!, #achievements, #unachieve!

Methods included from Connections::Threads

#threads

Methods included from Connections::Television

#television

Methods included from Connections::Tagged

#tagged

Methods included from Connections::Subscribers

#subscribers

Methods included from Connections::SubscribedTo

#subscribed_to

Methods included from Connections::Statuses

#statuses

Methods included from Connections::Scores

#score!, #scores, #unscore!

Methods included from Connections::Questions

#question!, #questions

Methods included from Connections::Posts

#posts

Methods included from Connections::Pokes

#pokes

Methods included from Connections::Picture

#picture

Methods included from Connections::Photos

#photo!, #photos

Methods included from Connections::Permissions

#permissions, #revoke!

Methods included from Connections::Payments

#payments

Methods included from Connections::Outbox

#outbox

Methods included from Connections::Notifications

#notification!, #notifications

Methods included from Connections::Notes

#note!, #notes

Methods included from Connections::MutualFriends

#mutual_friends

Methods included from Connections::Music

#music

Methods included from Connections::Movies

#movies

Methods included from Connections::Links

#link!, #links

Methods included from Connections::Likes

#likes

Methods included from Connections::Interests

#interests

Methods included from Connections::Inbox

#inbox

Methods included from Connections::Home

#home

Methods included from Connections::Groups

#groups

Methods included from Connections::Games

#games

Methods included from Connections::Family

#family

Methods included from Connections::Friends

#friends

Methods included from Connections::FriendRequests

#friend_requests

Methods included from Connections::FriendLists

#friend_list!, #friend_lists

Methods included from Connections::Feed

#feed, #feed!

Methods included from Connections::Events

#event!, #events

Methods included from Connections::Checkins

#checkin!, #checkins

Methods included from Connections::Books

#books

Methods included from Connections::AppRequests

#app_request!, #app_requests

Methods included from Connections::Albums

#album!, #albums

Methods included from Connections::Activities

#activities

Methods included from Connections::AdAccounts

#ad_accounts

Methods included from Connections::Accounts

#accounts

Methods inherited from Node

#connection, #destroy, fetch, #fetch, #update

Methods included from Comparison

#==

Constructor Details

#initialize(identifier, attributes = {}) ⇒ TestUser

Returns a new instance of TestUser.



5
6
7
8
9
# File 'lib/gs_graph/test_user.rb', line 5

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

Instance Attribute Details

#login_urlObject

Returns the value of attribute login_url.



3
4
5
# File 'lib/gs_graph/test_user.rb', line 3

def 
  @login_url
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/gs_graph/test_user.rb', line 3

def password
  @password
end

Instance Method Details

#friend!(test_user) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/gs_graph/test_user.rb', line 11

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