module BridgeAPI::Client::Enrollment
Public Instance Methods
Source
# File lib/bridge_api/client/enrollment.rb, line 6 def add_enrollment(course_template_id, params = {}) post("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}#{ENROLLMENT_PATH}", params) end
Source
# File lib/bridge_api/client/enrollment.rb, line 10 def delete_enrollment(enrollment_id, params = {}) delete("#{API_PATH}#{AUTHOR_PATH}#{ENROLLMENT_PATH}/#{enrollment_id}", params) end
Source
# File lib/bridge_api/client/enrollment.rb, line 18 def get_all_enrollments(course_template_id, params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}#{ENROLLMENT_PATH}", params) end
Source
# File lib/bridge_api/client/enrollment.rb, line 31 def get_learner_enrollments(learner_id, params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{LEARNERS_PATH}/#{learner_id}#{LEARNER_ENROLLMENTS}", params) end
Get all current enrollments for the learner.
Source
# File lib/bridge_api/client/enrollment.rb, line 26 def reset_enrollment(enrollment_id, params = {}) post("#{API_PATH}#{ADMIN_PATH}#{ENROLLMENT_PATH}/#{enrollment_id}#{RESET_PATH}", params) end
Source
# File lib/bridge_api/client/enrollment.rb, line 14 def update_enrollment(enrollment_id, params = {}) put("#{API_PATH}#{AUTHOR_PATH}#{ENROLLMENT_PATH}/#{enrollment_id}", params) end
Source
# File lib/bridge_api/client/enrollment.rb, line 22 def update_enrollment_due_date(enrollment_id, params = {}) post("#{API_PATH}#{AUTHOR_PATH}#{ENROLLMENT_PATH}/#{enrollment_id}#{DUE_DATE_PATH}", params) end