Module: Bearcat::Client::Sections

Included in:
Bearcat::Client
Defined in:
lib/bearcat/client/sections.rb

Instance Method Summary collapse

Instance Method Details

#course_sections(course, params = {}) ⇒ Object



5
6
7
# File 'lib/bearcat/client/sections.rb', line 5

def course_sections(course, params={})
  get("/api/v1/courses/#{course.to_s}/sections", params)
end

#create_section(course, params) ⇒ Object



13
14
15
# File 'lib/bearcat/client/sections.rb', line 13

def create_section(course, params)
  post("/api/v1/courses/#{course.to_s}/sections", params)
end

#delete_section(section) ⇒ Object



21
22
23
# File 'lib/bearcat/client/sections.rb', line 21

def delete_section(section)
  delete("/api/v1/sections/#{section.to_s}")
end

#section(section) ⇒ Object



9
10
11
# File 'lib/bearcat/client/sections.rb', line 9

def section(section)
  get("/api/v1/sections/#{section.to_s}")
end

#update_section(section, params) ⇒ Object



17
18
19
# File 'lib/bearcat/client/sections.rb', line 17

def update_section(section, params)
  put("/api/v1/sections/#{section.to_s}", params)
end