Class: FbGraph::Group
- Extended by:
- Searchable
- Includes:
- Connections::Docs, Connections::Events, Connections::Feed, Connections::Members, Connections::Picture, Connections::Videos
- Defined in:
- lib/fb_graph/group.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#email ⇒ Object
Returns the value of attribute email.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#link ⇒ Object
Returns the value of attribute link.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#privacy ⇒ Object
Returns the value of attribute privacy.
-
#updated_time ⇒ Object
Returns the value of attribute updated_time.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary collapse
-
#initialize(identifier, attributes = {}) ⇒ Group
constructor
A new instance of Group.
Methods included from Searchable
search, search, search_query_param
Methods included from Connections::Videos
Methods included from Connections::Picture
Methods included from Connections::Members
#member!, #members, #unmember!
Methods included from Connections::Feed
Methods included from Connections::Events
Methods included from Connections::Docs
Methods inherited from Node
#connection, #destroy, fetch, #fetch, #update
Methods included from Comparison
Constructor Details
#initialize(identifier, attributes = {}) ⇒ Group
Returns a new instance of Group.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fb_graph/group.rb', line 13 def initialize(identifier, attributes = {}) super if (owner = attributes[:owner]) @owner = User.new(owner[:id], owner) end @name = attributes[:name] @email = attributes[:email] @description = attributes[:description] @link = attributes[:link] @icon = attributes[:icon] @privacy = attributes[:privacy] @version = attributes[:version] if attributes[:updated_time] @updated_time = Time.parse(attributes[:updated_time]).utc end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def description @description end |
#email ⇒ Object
Returns the value of attribute email.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def email @email end |
#icon ⇒ Object
Returns the value of attribute icon.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def icon @icon end |
#link ⇒ Object
Returns the value of attribute link.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def link @link end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def owner @owner end |
#privacy ⇒ Object
Returns the value of attribute privacy.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def privacy @privacy end |
#updated_time ⇒ Object
Returns the value of attribute updated_time.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def updated_time @updated_time end |
#version ⇒ Object
Returns the value of attribute version.
11 12 13 |
# File 'lib/fb_graph/group.rb', line 11 def version @version end |