Class: FbGraph2::Page

Instance Attribute Summary

Attributes inherited from Node

#access_token, #id, #raw_attributes

Instance Method Summary collapse

Methods included from Edge::Videos

#video!, #videos

Methods included from Edge::Tagged

#tagged

Methods included from Edge::Statuses

#statuses

Methods included from Edge::PromotablePosts

#promotable_posts

Methods included from Edge::Posts

#posts

Methods included from Edge::Photos

#photo!, #photos

Methods included from Edge::Picture

#picture

Methods included from Edge::Offers

#offers

Methods included from Edge::Milestones

#milestones

Methods included from Edge::Locations

#locations

Methods included from Edge::Links

#links

Methods included from Edge::GlobalBrandChildren

#global_brand_children

Methods included from Edge::Feed

#feed, #feed!

Methods included from Edge::Events

#events

Methods included from Edge::Blocked

#block!, #blocked, #blocked?, #unblock!

Methods included from Edge::Albums

#album!, #albums

Methods included from Edge::Admins

#admin?, #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