lib/bearcat/client/enrollments.rb in bearcat-0.9.18 vs lib/bearcat/client/enrollments.rb in bearcat-0.9.19

- old
+ new

@@ -16,12 +16,16 @@ def enroll_in_section(section, params={}) post("/api/v1/sections/#{section.to_s}/enrollments", params) end + def enroll_in_course(course, params={}) + post("/api/v1/courses/#{course.to_s}/enrollments", params) + end + def conclude_enrollment(course, enrollment, params={}) delete("/api/v1/courses/#{course}/enrollments/#{enrollment}", params) end end end -end \ No newline at end of file +end