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