Class: FbGraph2::User
- Includes:
- Edge::Accounts, Edge::Achievements, Edge::Activities, Edge::Albums, Edge::Books, Edge::Events, Edge::Family, Edge::Feed, Edge::FriendLists, Edge::Friends, Edge::Games, Edge::Groups, Edge::Home, Edge::Interests, Edge::InvitableFriends, Edge::Likes::LikerContext, Edge::Links, Edge::Movies, Edge::Music, Edge::Notifications, Edge::Permissions, Edge::Photos, Edge::Picture, Edge::Pokes, Edge::Posts, Edge::Scores, Edge::Statuses, Edge::Tagged, Edge::Television, Edge::Videos
- Defined in:
- lib/fb_graph2/user.rb
Instance Attribute Summary
Attributes inherited from Node
#access_token, #id, #raw_attributes
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, attributes = {}) ⇒ User
constructor
A new instance of User.
Methods included from Edge::Videos
Methods included from Edge::Television
Methods included from Edge::Tagged
Methods included from Edge::Statuses
Methods included from Edge::Scores
Methods included from Edge::Posts
Methods included from Edge::Pokes
Methods included from Edge::Photos
Methods included from Edge::Picture
Methods included from Edge::Permissions
Methods included from Edge::Notifications
#notification!, #notifications
Methods included from Edge::Music
Methods included from Edge::Movies
Methods included from Edge::Links
Methods included from Edge::Likes::LikerContext
Methods included from Edge::InvitableFriends
Methods included from Edge::Interests
Methods included from Edge::Home
Methods included from Edge::Groups
Methods included from Edge::Games
Methods included from Edge::Friends
Methods included from Edge::FriendLists
Methods included from Edge::Feed
Methods included from Edge::Family
Methods included from Edge::Events
Methods included from Edge::Books
Methods included from Edge::Albums
Methods included from Edge::Activities
Methods included from Edge::Achievements
Methods included from Edge::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 |