Module: FbGraph::Connections::Groups

Included in:
Page, User
Defined in:
lib/fb_graph/connections/groups.rb

Instance Method Summary collapse

Instance Method Details

#groups(options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fb_graph/connections/groups.rb', line 4

def groups(options = {})
  groups = FbGraph::Collection.new(get(options.merge(:connection => 'groups')))
  groups.map! do |group|
    Group.new(group.delete(:id), group)
  end
end