Class: FbGraph2::App

Instance Attribute Summary

Attributes inherited from Node

#access_token, #id

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Edge::Translations

#translation!, #translations

Methods included from Edge::TestUsers

#test_user!, #test_users

Methods included from Edge::Subscriptions

#subscriptions

Methods included from Edge::StaticResources

#static_resources

Methods included from Edge::Scores

#score!, #scores, #unscore!

Methods included from Edge::Roles::AppContext

#role!, #roles, #unrole!

Methods included from Edge::Picture

#assign, #picture

Methods included from Edge::Permissions

#permissions, #revoke!

Methods included from Edge::Groups

#groups

Methods included from Edge::Banned

#ban!, #banned, #banned?, #unban!

Methods included from Edge::AppEventTypes

#app_event_types

Methods included from Edge::AppLinkHosts

#app_link_host!, #app_link_hosts

Methods included from Edge::AppInsights

#app_insights

Methods included from Edge::Achievements

#achievements

Methods inherited from Node

#authenticate, #destroy, #edge, #edges, #fetch, #update

Methods included from AttributeAssigner

#assign

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