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