Class: FbGraph2::App
- Includes:
- Edge::Achievements, Edge::AppEventTypes, Edge::AppInsights, Edge::AppLinkHosts, Edge::Banned, Edge::Groups, Edge::Permissions, Edge::Picture, Edge::Roles::AppContext, Edge::Scores, Edge::StaticResources, Edge::Subscriptions, Edge::TestUsers, Edge::Translations
- Defined in:
- lib/fb_graph2/app.rb
Instance Attribute Summary
Attributes inherited from Node
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::AppContext
Methods included from Edge::Picture
Methods included from Edge::Permissions
Methods included from Edge::Groups
Methods included from Edge::Banned
#ban!, #banned, #banned?, #unban!
Methods included from Edge::AppEventTypes
Methods included from Edge::AppLinkHosts
#app_link_host!, #app_link_hosts
Methods included from Edge::AppInsights
Methods included from Edge::Achievements
Methods inherited from Node
#authenticate, #destroy, #edge, #edges, #fetch, #update
Methods included from AttributeAssigner
Constructor Details
#initialize(id, attributes = {}) ⇒ App
Returns a new instance of App.
39 40 41 42 43 44 45 |
# File 'lib/fb_graph2/app.rb', line 39 def initialize(id, attributes = {}) super if attributes.include? :context self.context = Struct::Context::AppContext.new attributes[:context] end # TODO: handle custom attributes. end |
Class Method Details
.app(access_token) ⇒ Object
47 48 49 |
# File 'lib/fb_graph2/app.rb', line 47 def self.app(access_token) new(:app).authenticate access_token end |