Module: Yammer::Api::Group
- Included in:
- Client
- Defined in:
- lib/yammer/api/group.rb
Instance Method Summary collapse
- #all_groups(opts = {}) ⇒ Yammer::ApiResponse
- #create_group(opts = {}) ⇒ Yammer::ApiResponse
- #get_group(id) ⇒ Yammer::ApiResponse
- #groups_for_user(id) ⇒ Yammer::ApiResponse
- #update_group(id, opts = {}) ⇒ Yammer::ApiResponse
Instance Method Details
#all_groups(opts = {}) ⇒ Yammer::ApiResponse
30 31 32 |
# File 'lib/yammer/api/group.rb', line 30 def all_groups(opts={}) get("/api/v1/groups", opts) end |
#create_group(opts = {}) ⇒ Yammer::ApiResponse
58 59 60 |
# File 'lib/yammer/api/group.rb', line 58 def create_group(opts={}) post("/api/v1/groups", opts) end |
#get_group(id) ⇒ Yammer::ApiResponse
42 43 44 |
# File 'lib/yammer/api/group.rb', line 42 def get_group(id) get("/api/v1/groups/#{id}") end |
#groups_for_user(id) ⇒ Yammer::ApiResponse
87 88 89 |
# File 'lib/yammer/api/group.rb', line 87 def groups_for_user(id) get("/api/v1/groups/for_user/#{id}") end |
#update_group(id, opts = {}) ⇒ Yammer::ApiResponse
75 76 77 |
# File 'lib/yammer/api/group.rb', line 75 def update_group(id, opts={}) post("/api/v1/groups/#{id}", opts) end |