Module: BridgeAPI::Client::CourseTemplate
- Defined in:
- lib/bridge_api/client/course_template.rb
Instance Method Summary collapse
- #create_course_template(params = {}) ⇒ Object
- #delete_course_template(course_template_id, params = {}) ⇒ Object
- #get_all_course_templates(params = {}) ⇒ Object
- #get_course_template(course_template_id, params = {}) ⇒ Object
- #publish_course_template(course_template_id, params = {}) ⇒ Object
- #update_course_template(course_template_id, params = {}) ⇒ Object
Instance Method Details
#create_course_template(params = {}) ⇒ Object
10 11 12 |
# File 'lib/bridge_api/client/course_template.rb', line 10 def create_course_template(params = {}) post("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}", params) end |
#delete_course_template(course_template_id, params = {}) ⇒ Object
14 15 16 |
# File 'lib/bridge_api/client/course_template.rb', line 14 def delete_course_template(course_template_id, params = {}) delete("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}", params) end |
#get_all_course_templates(params = {}) ⇒ Object
6 7 8 |
# File 'lib/bridge_api/client/course_template.rb', line 6 def get_all_course_templates(params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}", params) end |
#get_course_template(course_template_id, params = {}) ⇒ Object
22 23 24 |
# File 'lib/bridge_api/client/course_template.rb', line 22 def get_course_template(course_template_id, params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}", params) end |
#publish_course_template(course_template_id, params = {}) ⇒ Object
18 19 20 |
# File 'lib/bridge_api/client/course_template.rb', line 18 def publish_course_template(course_template_id, params = {}) post("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}/publish", params) end |
#update_course_template(course_template_id, params = {}) ⇒ Object
26 27 28 |
# File 'lib/bridge_api/client/course_template.rb', line 26 def update_course_template(course_template_id, params = {}) put("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}", params) end |