Module: Bearcat::Client::Enrollments

Included in:
Bearcat::Client
Defined in:
lib/bearcat/client/enrollments.rb

Instance Method Summary collapse

Instance Method Details

#conclude_enrollment(course, enrollment, params = {}) ⇒ Object



21
22
23
# File 'lib/bearcat/client/enrollments.rb', line 21

def conclude_enrollment(course, enrollment, params={})
  delete("/api/v1/courses/#{course}/enrollments/#{enrollment}", params)
end

#course_enrollments(course, params = {}) ⇒ Object



9
10
11
# File 'lib/bearcat/client/enrollments.rb', line 9

def course_enrollments(course, params={})
  get("/api/v1/courses/#{course.to_s}/enrollments", params)
end

#enroll_in_section(section, params = {}) ⇒ Object



17
18
19
# File 'lib/bearcat/client/enrollments.rb', line 17

def enroll_in_section(section, params={})
  post("/api/v1/sections/#{section.to_s}/enrollments", params)
end

#section_enrollments(section, params = {}) ⇒ Object



13
14
15
# File 'lib/bearcat/client/enrollments.rb', line 13

def section_enrollments(section, params={})
  get("/api/v1/sections/#{section.to_s}/enrollments", params)
end

#user_enrollments(user, params = {}) ⇒ Object



5
6
7
# File 'lib/bearcat/client/enrollments.rb', line 5

def user_enrollments(user, params={})
  get("/api/v1/users/#{user.to_s}/enrollments", params)
end