Class: FbGraph::Page

Instance Attribute Summary collapse

Attributes inherited from Node

#access_token, #endpoint, #identifier

Instance Method Summary collapse

Methods included from Searchable

search, search

Methods included from Connections::Events

#event!, #events

Methods included from Connections::Members

#members

Methods included from Connections::Posts

#posts

Methods included from Connections::Notes

#note!, #notes

Methods included from Connections::Videos

#videos

Methods included from Connections::Statuses

#statuses

Methods included from Connections::Albums

#album!, #albums

Methods included from Connections::Groups

#groups

Methods included from Connections::Photos

#photo!, #photos

Methods included from Connections::Links

#link!, #links

Methods included from Connections::Tagged

#tagged

Methods included from Connections::Picture

#picture

Methods included from Connections::Feed

#feed, #feed!

Methods inherited from Node

#connection, #destroy, fetch, #fetch

Methods included from Comparison

#==

Constructor Details

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

Returns a new instance of Page.



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/fb_graph/page.rb', line 20

def initialize(identifier, attributes = {})
  super
  @name     = attributes[:name]
  @username = attributes[:username]
  @link     = attributes[:link]
  @category = attributes[:category]
  if (founded = attributes[:founded])
    @founded = Date.parse(founded)
  end
  @company_overview = attributes[:company_overview]
  @mission  = attributes[:mission]
  if (products = attributes[:products])
    @products = products.split "\n"
  end
  @fan_count = attributes[:fan_count]
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def category
  @category
end

#company_overviewObject

Returns the value of attribute company_overview.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def company_overview
  @company_overview
end

#fan_countObject

Returns the value of attribute fan_count.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def fan_count
  @fan_count
end

#foundedObject

Returns the value of attribute founded.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def founded
  @founded
end

Returns the value of attribute link.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def link
  @link
end

#missionObject

Returns the value of attribute mission.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def mission
  @mission
end

#nameObject

Returns the value of attribute name.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def name
  @name
end

#productsObject

Returns the value of attribute products.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def products
  @products
end

#usernameObject

Returns the value of attribute username.



18
19
20
# File 'lib/fb_graph/page.rb', line 18

def username
  @username
end