Module: Bearcat::Client::Groups
- Defined in:
- lib/bearcat/client/groups.rb
Instance Method Summary collapse
- #account_groups(account_id) ⇒ Object
- #category_groups(group_category_id) ⇒ Object
- #course_groups(course) ⇒ Object
- #create_group(group_category_id, params = {}) ⇒ Object
- #delete_group(group_id) ⇒ Object
- #edit_group(group_id, params = {}) ⇒ Object
- #group(id) ⇒ Object
Instance Method Details
#account_groups(account_id) ⇒ Object
9 10 11 |
# File 'lib/bearcat/client/groups.rb', line 9 def account_groups(account_id) get("/api/v1/accounts/#{account_id}/groups") end |
#category_groups(group_category_id) ⇒ Object
13 14 15 |
# File 'lib/bearcat/client/groups.rb', line 13 def category_groups(group_category_id) get("/api/v1/group_categories/#{group_category_id}/groups") end |
#course_groups(course) ⇒ Object
5 6 7 |
# File 'lib/bearcat/client/groups.rb', line 5 def course_groups(course) get("/api/v1/courses/#{course.to_s}/groups") end |
#create_group(group_category_id, params = {}) ⇒ Object
21 22 23 |
# File 'lib/bearcat/client/groups.rb', line 21 def create_group(group_category_id, params={}) post("/api/v1/group_categories/#{group_category_id}/groups", params) end |
#delete_group(group_id) ⇒ Object
29 30 31 |
# File 'lib/bearcat/client/groups.rb', line 29 def delete_group(group_id) delete("/api/v1/groups/#{group_id}") end |
#edit_group(group_id, params = {}) ⇒ Object
25 26 27 |
# File 'lib/bearcat/client/groups.rb', line 25 def edit_group(group_id, params={}) put("/api/v1/groups/#{group_id}", params) end |
#group(id) ⇒ Object
17 18 19 |
# File 'lib/bearcat/client/groups.rb', line 17 def group(id) get("/api/v1/groups/#{id}") end |