Module: LinkedIn::Api::GroupMethods

Included in:
Client
Defined in:
lib/linked_in/api/group_methods.rb

Instance Method Summary collapse

Instance Method Details

#groups(options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/linked_in/api/group_methods.rb', line 5

def groups(options={})
  path = "#{person_path(options)}/group-memberships?membership-state=member"
  group_mash = simple_query(path, options)
  group_mash.all
end

#suggested_groups(options = {}) ⇒ Object



11
12
13
14
# File 'lib/linked_in/api/group_methods.rb', line 11

def suggested_groups(options={})
  path   = "#{person_path(options)}/suggestions/groups"
  simple_query(path, options)
end