Class: FbGraph2::User

Instance Attribute Summary

Attributes inherited from Node

#access_token, #id, #raw_attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Edge::Videos

#video!, #videos

Methods included from Edge::Television

#television

Methods included from Edge::Tagged

#tagged

Methods included from Edge::Statuses

#statuses

Methods included from Edge::Scores

#scores

Methods included from Edge::Posts

#posts

Methods included from Edge::Pokes

#pokes

Methods included from Edge::Photos

#photo!, #photos

Methods included from Edge::Picture

#picture

Methods included from Edge::Permissions

#permissions

Methods included from Edge::Notifications

#notification!, #notifications

Methods included from Edge::Music

#music

Methods included from Edge::Movies

#movies

Methods included from Edge::Links

#links

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::Home

#home

Methods included from Edge::Groups

#groups

Methods included from Edge::Games

#games

Methods included from Edge::Friends

#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::Books

#books

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, #fetch, inherited, #update

Constructor Details

#initialize(id, attributes = {}) ⇒ User

Returns a new instance of User.



53
54
55
56
# File 'lib/fb_graph2/user.rb', line 53

def initialize(id, attributes = {})
  super
  # TODO: handle custom attributes.
end

Class Method Details

.me(access_token) ⇒ Object



58
59
60
# File 'lib/fb_graph2/user.rb', line 58

def self.me(access_token)
  new(:me).authenticate access_token
end