Module: Bearcat::Client::Courses
- Included in:
- Bearcat::Client
- Defined in:
- lib/bearcat/client/courses.rb
Instance Method Summary collapse
- #course(course) ⇒ Object
- #create_course(account_id, params = {}) ⇒ Object
- #list_course_users(course, params = {}) ⇒ Object
Instance Method Details
#course(course) ⇒ Object
5 6 7 |
# File 'lib/bearcat/client/courses.rb', line 5 def course(course) get("/api/v1/courses/#{course}") end |
#create_course(account_id, params = {}) ⇒ Object
9 10 11 |
# File 'lib/bearcat/client/courses.rb', line 9 def create_course(account_id, params={}) post("/api/v1/accounts/#{account_id}/courses", params) end |
#list_course_users(course, params = {}) ⇒ Object
13 14 15 |
# File 'lib/bearcat/client/courses.rb', line 13 def list_course_users(course, params={}) get("/api/v1/courses/#{course}/users", params) end |