module Bearcat class Client < Footrest::Client module Enrollments 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={}) delete("/api/v1/courses/#{course}/enrollments/#{enrollment}", params) end end end end