Class: FbGraph2::App
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 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 |