Class: FbGraph::Group

Inherits:
Node
  • Object
show all
Includes:
Connections::Feed, Connections::Members, Connections::Picture
Defined in:
lib/fb_graph/group.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#access_token, #endpoint, #identifier

Instance Method Summary collapse

Methods included from Connections::Picture

#picture

Methods included from Connections::Members

#members

Methods included from Connections::Feed

#feed

Methods inherited from Node

#fetch, fetch

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
# File 'lib/fb_graph/group.rb', line 9

def initialize(identifier, options = {})
  super
  if (owner = options[:owner])
    @owner = FbGraph::User.new(owner.delete(:id), owner)
  end
  @name         = options[:name]
  @description  = options[:description]
  @link         = options[:link]
  if options[:venue]
    @venue = FbGraph::Venue.new(options[:venue])
  end
  @privacy      = options[:privacy]
  @updated_time = options[:updated_time]
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/fb_graph/group.rb', line 7

def description
  @description
end

Returns the value of attribute link.



7
8
9
# File 'lib/fb_graph/group.rb', line 7

def link
  @link
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/fb_graph/group.rb', line 7

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



7
8
9
# File 'lib/fb_graph/group.rb', line 7

def owner
  @owner
end

#privacyObject

Returns the value of attribute privacy.



7
8
9
# File 'lib/fb_graph/group.rb', line 7

def privacy
  @privacy
end

#updated_timeObject

Returns the value of attribute updated_time.



7
8
9
# File 'lib/fb_graph/group.rb', line 7

def updated_time
  @updated_time
end

#venueObject

Returns the value of attribute venue.



7
8
9
# File 'lib/fb_graph/group.rb', line 7

def venue
  @venue
end