lib/bearcat/client/enrollments.rb in bearcat-0.1.1 vs lib/bearcat/client/enrollments.rb in bearcat-0.3

- old
+ new

@@ -4,9 +4,17 @@ def user_enrollments(user, params={}) get("/api/v1/users/#{user.to_s}/enrollments", params) end + def course_enrollments(course, params={}) + get("/api/v1/courses/#{course.to_s}/enrollments", params) + end + + def section_enrollments(section, params={}) + get("/api/v1/sections/#{section.to_s}/enrollments", params) + end + def enroll_in_section(section, params={}) post("/api/v1/sections/#{section.to_s}/enrollments", params) end def conclude_enrollment(course, enrollment, params={}) \ No newline at end of file