Class: FbGraph::Group
- Defined in:
- lib/fb_graph/group.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#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.
-
#venue ⇒ Object
Returns the value of attribute venue.
Attributes inherited from Node
#access_token, #endpoint, #identifier
Instance Method Summary collapse
-
#initialize(identifier, attributes = {}) ⇒ Group
constructor
A new instance of Group.
Methods included from Searchable
Methods included from Connections::Picture
Methods included from Connections::Members
Methods included from Connections::Feed
Methods inherited from Node
#connection, #destroy, fetch, #fetch
Methods included from Comparison
Constructor Details
#initialize(identifier, attributes = {}) ⇒ Group
Returns a new instance of Group.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fb_graph/group.rb', line 10 def initialize(identifier, attributes = {}) super if (owner = attributes[:owner]) @owner = FbGraph::User.new(owner.delete(:id), owner) end @name = attributes[:name] @description = attributes[:description] @link = attributes[:link] @privacy = attributes[:privacy] if attributes[:venue] @venue = FbGraph::Venue.new(attributes[:venue]) end 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.
8 9 10 |
# File 'lib/fb_graph/group.rb', line 8 def description @description end |
#link ⇒ Object
Returns the value of attribute link.
8 9 10 |
# File 'lib/fb_graph/group.rb', line 8 def link @link end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/fb_graph/group.rb', line 8 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
8 9 10 |
# File 'lib/fb_graph/group.rb', line 8 def owner @owner end |
#privacy ⇒ Object
Returns the value of attribute privacy.
8 9 10 |
# File 'lib/fb_graph/group.rb', line 8 def privacy @privacy end |
#updated_time ⇒ Object
Returns the value of attribute updated_time.
8 9 10 |
# File 'lib/fb_graph/group.rb', line 8 def updated_time @updated_time end |
#venue ⇒ Object
Returns the value of attribute venue.
8 9 10 |
# File 'lib/fb_graph/group.rb', line 8 def venue @venue end |