Class: FbGraph2::App

Inherits:
Node
  • Object
show all
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

Methods inherited from Node

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

Constructor Details

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

Returns a new instance of App.



22
23
24
25
# File 'lib/fb_graph2/app.rb', line 22

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

Class Method Details

.app(access_token) ⇒ Object



27
28
29
# File 'lib/fb_graph2/app.rb', line 27

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