Class: FbGraph2::App
- Includes:
- Edge::Achievements, Edge::AppEventTypes, Edge::AppLinkHosts, Edge::Banned, Edge::Groups, Edge::Picture, Edge::Roles, Edge::Scores, Edge::StaticResources, Edge::Subscriptions, Edge::TestUsers, Edge::Translations
- Defined in:
- lib/fb_graph2/app.rb
Instance Attribute Summary
Attributes inherited from Node
#access_token, #id, #raw_attributes
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, attributes = {}) ⇒ App
constructor
A new instance of App.
Methods included from Edge::Translations
Methods included from Edge::TestUsers
Methods included from Edge::Subscriptions
Methods included from Edge::StaticResources
Methods included from Edge::Scores
Methods included from Edge::Roles
Methods included from Edge::Picture
Methods included from Edge::Groups
Methods included from Edge::Banned
#ban!, #banned, #banned?, #unban!
Methods included from Edge::AppEventTypes
Methods included from Edge::AppLinkHosts
Methods included from Edge::Achievements
Methods inherited from Node
#authenticate, #destroy, #edge, #edges, fetch, #fetch, inherited, #update
Constructor Details
#initialize(id, attributes = {}) ⇒ App
35 36 37 38 |
# File 'lib/fb_graph2/app.rb', line 35 def initialize(id, attributes = {}) super # TODO: handle custom attributes. end |
Class Method Details
.app(access_token) ⇒ Object
40 41 42 |
# File 'lib/fb_graph2/app.rb', line 40 def self.app(access_token) new(:app).authenticate access_token end |