Class: FbGraph::Group
- Inherits:
-
Node
- Object
- Node
- FbGraph::Group
- Extended by:
- Searchable
- Includes:
- Connections::Docs, Connections::Feed, Connections::Members, Connections::Picture, Connections::Videos
- Defined in:
- lib/fb_graph/group.rb
Instance Attribute Summary (collapse)
-
- (Object) description
Returns the value of attribute description.
-
- (Object) email
Returns the value of attribute email.
-
- (Object) icon
Returns the value of attribute icon.
-
- (Object) link
Returns the value of attribute link.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) owner
Returns the value of attribute owner.
-
- (Object) privacy
Returns the value of attribute privacy.
-
- (Object) updated_time
Returns the value of attribute updated_time.
-
- (Object) version
Returns the value of attribute version.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary (collapse)
-
- (Group) initialize(identifier, attributes = {})
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::Docs
Methods inherited from Node
#connection, #destroy, fetch, #fetch, #update
Methods included from Comparison
Constructor Details
- (Group) initialize(identifier, attributes = {})
A new instance of Group
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/fb_graph/group.rb', line 12 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
- (Object) description
Returns the value of attribute description
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def description @description end |
- (Object) email
Returns the value of attribute email
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def email @email end |
- (Object) icon
Returns the value of attribute icon
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def icon @icon end |
- (Object) link
Returns the value of attribute link
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def link @link end |
- (Object) name
Returns the value of attribute name
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def name @name end |
- (Object) owner
Returns the value of attribute owner
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def owner @owner end |
- (Object) privacy
Returns the value of attribute privacy
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def privacy @privacy end |
- (Object) updated_time
Returns the value of attribute updated_time
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def updated_time @updated_time end |
- (Object) version
Returns the value of attribute version
10 11 12 |
# File 'lib/fb_graph/group.rb', line 10 def version @version end |