module Bearcat class Client < Footrest::Client module Sections def course_sections(course, params={}) get("/api/v1/courses/#{course.to_s}/sections", params) end def section(section) get("/api/v1/sections/#{section.to_s}") end def create_section(course, params) post("/api/v1/courses/#{course.to_s}/sections", params) end def update_section(section, params) put("/api/v1/sections/#{section.to_s}", params) end def delete_section(section) delete("/api/v1/sections/#{section.to_s}") end end end end