Module: Yammer::Client::Groups
- Included in:
- Yammer::Client
- Defined in:
- lib/yammer/client/groups.rb
Overview
Defines methods related to groups
Instance Method Summary collapse
-
#create_group(name, options = {}) ⇒ Object
Create/Update group.
-
#group(id, options = {}) ⇒ Hashie::Mash
Get specific group information.
-
#groups(options = {}) ⇒ Hashie::Mash
Get groups information.
Instance Method Details
#create_group(name, options = {}) ⇒ Object
Create/Update group.
39 40 41 |
# File 'lib/yammer/client/groups.rb', line 39 def create_group(name, ={}) post('groups', .merge({:name => name})) end |
#group(id, options = {}) ⇒ Hashie::Mash
Get specific group information.
29 30 31 |
# File 'lib/yammer/client/groups.rb', line 29 def group(id, ={}) get("groups/#{id}", ) end |
#groups(options = {}) ⇒ Hashie::Mash
Get groups information.
18 19 20 |
# File 'lib/yammer/client/groups.rb', line 18 def groups(={}) get("groups", ) end |