Class: GSGraph::TestUser
Instance Attribute Summary collapse
-
#login_url ⇒ Object
Returns the value of attribute login_url.
-
#password ⇒ Object
Returns the value of attribute password.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary collapse
- #friend!(test_user) ⇒ Object
-
#initialize(identifier, attributes = {}) ⇒ TestUser
constructor
A new instance of TestUser.
Methods inherited from User
Methods included from Searchable
search, #search, search_query_param
Methods included from OpenGraph::UserContext
Methods included from Connections::Videos
Methods included from Connections::UserLikes
Methods included from Connections::UserAchievements
#achieve!, #achievements, #unachieve!
Methods included from Connections::Threads
Methods included from Connections::Television
Methods included from Connections::Tagged
Methods included from Connections::Subscribers
Methods included from Connections::SubscribedTo
Methods included from Connections::Statuses
Methods included from Connections::Scores
Methods included from Connections::Questions
Methods included from Connections::Posts
Methods included from Connections::Pokes
Methods included from Connections::Picture
Methods included from Connections::Photos
Methods included from Connections::Permissions
Methods included from Connections::Payments
Methods included from Connections::Outbox
Methods included from Connections::Notifications
#notification!, #notifications
Methods included from Connections::Notes
Methods included from Connections::MutualFriends
Methods included from Connections::Music
Methods included from Connections::Movies
Methods included from Connections::Links
Methods included from Connections::Likes
Methods included from Connections::Interests
Methods included from Connections::Inbox
Methods included from Connections::Home
Methods included from Connections::Groups
Methods included from Connections::Games
Methods included from Connections::Family
Methods included from Connections::Friends
Methods included from Connections::FriendRequests
Methods included from Connections::FriendLists
Methods included from Connections::Feed
Methods included from Connections::Events
Methods included from Connections::Checkins
Methods included from Connections::Books
Methods included from Connections::AppRequests
Methods included from Connections::Albums
Methods included from Connections::Activities
Methods included from Connections::AdAccounts
Methods included from Connections::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_url ⇒ Object
Returns the value of attribute login_url.
3 4 5 |
# File 'lib/gs_graph/test_user.rb', line 3 def login_url @login_url end |
#password ⇒ Object
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 |