Class: FbGraph2::Page
- Includes:
- Edge::Admins, Edge::Albums, Edge::Blocked, Edge::Events, Edge::Feed, Edge::GlobalBrandChildren, Edge::Links, Edge::Locations, Edge::Milestones, Edge::Offers, Edge::Photos, Edge::Picture, Edge::Posts, Edge::PromotablePosts, Edge::Statuses, Edge::Tagged, Edge::Videos
- Defined in:
- lib/fb_graph2/page.rb
Instance Attribute Summary
Attributes inherited from Node
#access_token, #id, #raw_attributes
Instance Method Summary collapse
-
#initialize(id, attributes = {}) ⇒ Page
constructor
A new instance of Page.
Methods included from Edge::Videos
Methods included from Edge::Tagged
Methods included from Edge::Statuses
Methods included from Edge::PromotablePosts
Methods included from Edge::Posts
Methods included from Edge::Photos
Methods included from Edge::Picture
Methods included from Edge::Offers
Methods included from Edge::Milestones
Methods included from Edge::Locations
Methods included from Edge::Links
Methods included from Edge::GlobalBrandChildren
Methods included from Edge::Feed
Methods included from Edge::Events
Methods included from Edge::Blocked
#block!, #blocked, #blocked?, #unblock!
Methods included from Edge::Albums
Methods included from Edge::Admins
Methods inherited from Node
#authenticate, #destroy, #edge, #edges, fetch, #fetch, inherited, #update
Constructor Details
#initialize(id, attributes = {}) ⇒ Page
Returns a new instance of Page.
40 41 42 43 44 45 46 47 48 |
# File 'lib/fb_graph2/page.rb', line 40 def initialize(id, attributes = {}) super if attributes.include? :category_list self.category_list = attributes[:category_list].collect do |page_category| PageCategory.new page_category[:id], page_category end end # TODO: handle other custom attributes. end |