Sha256: 71b47e0190583e43e558f8a37e7fe866ccd1e5cf8e13c040087420b103e954f4
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
module Bearcat class Client < Footrest::Client module Assignments def assignments(course, params={}) get("/api/v1/courses/#{course}/assignments", params) end def assignment(course, assignment, params={}) get("/api/v1/courses/#{course}/assignments/#{assignment}", params) end def assignment_overrides(course, assignment) get("/api/v1/courses/#{course}/assignments/#{assignment}/overrides") end def create_assignment_override(course, assignment, params) post("api/v1/courses/#{course}/assignments/#{assignment}/overrides", params) end def create_assignment(course, params={}) post("/api/v1/courses/#{course}/assignments", params) end def edit_assignment(course, assignment, params={}) put("/api/v1/courses/#{course}/assignments/#{assignment}", params) end def delete_assignment(course, assignment) delete("/api/v1/courses/#{course}/assignments/#{assignment}") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bearcat-1.3.22 | lib/bearcat/client/assignments.rb |
bearcat-1.3.21 | lib/bearcat/client/assignments.rb |
bearcat-1.3.20 | lib/bearcat/client/assignments.rb |