Class: FbGraph::Page

Direct Known Subclasses

Klass, Place

Defined Under Namespace

Modules: CategoryAttributes

Constant Summary

Constants included from Connections::Settings

Connections::Settings::AVAILABLE_SETTINGS

Instance Attribute Summary collapse

Attributes inherited from Node

#access_token, #endpoint, #identifier

Instance Method Summary collapse

Methods included from Searchable

search, search, search_query_param

Methods included from CategoryAttributes

included, #initialize_with_category_specific_attributes

Methods included from Connections::Videos

#video!, #videos

Methods included from Connections::Tagged

#tagged

Methods included from Connections::Tabs

#tab!, #tab?, #tabs

Methods included from Connections::Statuses

#statuses

Methods included from Connections::Settings

#disable!, #enable!, included, #settings

Methods included from Connections::Questions

#question!, #questions

Methods included from Connections::Posts

#posts

Methods included from Connections::Picture

#picture

Methods included from Connections::Photos

#photo!, #photos

Methods included from Connections::Notes

#note!, #notes

Methods included from Connections::Links

#link!, #links

Methods included from Connections::Likes

#likes

Methods included from Connections::Insights

#insights

Methods included from Connections::Groups

#groups

Methods included from Connections::Feed

#feed, #feed!

Methods included from Connections::Events

#event!, #events

Methods included from Connections::Checkins

#checkin!, #checkins

Methods included from Connections::Blocked

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

Methods included from Connections::Albums

#album!, #albums

Methods included from Connections::Admins

#admin?

Methods inherited from Node

#connection, #destroy, fetch, #fetch, #update

Methods included from Comparison

#==

Constructor Details

#initialize(identifier, attributes = {}) ⇒ Page

Returns a new instance of Page.



27
28
29
30
31
32
33
# File 'lib/fb_graph/page.rb', line 27

def initialize(identifier, attributes = {})
  super
  [:name, :username, :category, :talking_about_count].each do |key|
    self.send :"#{key}=", attributes[key]
  end
  @like_count = attributes[:likes] || attributes[:fan_count]
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



25
26
27
# File 'lib/fb_graph/page.rb', line 25

def category
  @category
end

#like_countObject

Returns the value of attribute like_count.



25
26
27
# File 'lib/fb_graph/page.rb', line 25

def like_count
  @like_count
end

#nameObject

Returns the value of attribute name.



25
26
27
# File 'lib/fb_graph/page.rb', line 25

def name
  @name
end

#talking_about_countObject

Returns the value of attribute talking_about_count.



25
26
27
# File 'lib/fb_graph/page.rb', line 25

def talking_about_count
  @talking_about_count
end

#usernameObject

Returns the value of attribute username.



25
26
27
# File 'lib/fb_graph/page.rb', line 25

def username
  @username
end