Class: FbGraph::Page
- Extended by:
- Searchable
- Includes:
- Connections::Admins, Connections::Albums, Connections::Blocked, Connections::Checkins, Connections::Conversations, Connections::Events, Connections::Feed, Connections::Groups, Connections::Insights, Connections::Likes, Connections::Links, Connections::Milestones, Connections::Notes, Connections::Photos, Connections::Picture, Connections::Posts, Connections::Questions, Connections::Settings, Connections::Statuses, Connections::Tabs, Connections::Tagged, Connections::Videos, CategoryAttributes
- Defined in:
- lib/fb_graph/page.rb,
lib/fb_graph/page/category_attributes.rb
Defined Under Namespace
Modules: CategoryAttributes
Constant Summary
Constants included from Connections::Settings
Connections::Settings::AVAILABLE_SETTINGS
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#like_count ⇒ Object
Returns the value of attribute like_count.
-
#name ⇒ Object
Returns the value of attribute name.
-
#perms ⇒ Object
Returns the value of attribute perms.
-
#talking_about_count ⇒ Object
Returns the value of attribute talking_about_count.
-
#username ⇒ Object
Returns the value of attribute username.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary collapse
-
#initialize(identifier, attributes = {}) ⇒ Page
constructor
A new instance of Page.
Methods included from Searchable
search, search, search_query_param
Methods included from CategoryAttributes
included, #initialize_with_category_specific_attributes
Methods included from Connections::Videos
Methods included from Connections::Tagged
Methods included from Connections::Tabs
Methods included from Connections::Statuses
Methods included from Connections::Settings
#disable!, #enable!, included, #settings
Methods included from Connections::Questions
Methods included from Connections::Posts
Methods included from Connections::Picture
Methods included from Connections::Photos
Methods included from Connections::Notes
Methods included from Connections::Milestones
Methods included from Connections::Links
Methods included from Connections::Likes
Methods included from Connections::Insights
Methods included from Connections::Groups
Methods included from Connections::Feed
Methods included from Connections::Events
Methods included from Connections::Conversations
Methods included from Connections::Checkins
Methods included from Connections::Blocked
#block!, #blocked, #blocked?, #unblock!
Methods included from Connections::Albums
Methods included from Connections::Admins
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.
29 30 31 32 33 34 35 36 |
# File 'lib/fb_graph/page.rb', line 29 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] @perms = attributes[:perms] end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
27 28 29 |
# File 'lib/fb_graph/page.rb', line 27 def category @category end |
#like_count ⇒ Object
Returns the value of attribute like_count.
27 28 29 |
# File 'lib/fb_graph/page.rb', line 27 def like_count @like_count end |
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/fb_graph/page.rb', line 27 def name @name end |
#perms ⇒ Object
Returns the value of attribute perms.
27 28 29 |
# File 'lib/fb_graph/page.rb', line 27 def perms @perms end |
#talking_about_count ⇒ Object
Returns the value of attribute talking_about_count.
27 28 29 |
# File 'lib/fb_graph/page.rb', line 27 def talking_about_count @talking_about_count end |
#username ⇒ Object
Returns the value of attribute username.
27 28 29 |
# File 'lib/fb_graph/page.rb', line 27 def username @username end |