lib/bearcat/client/conferences.rb in bearcat-1.4.13 vs lib/bearcat/client/conferences.rb in bearcat-1.5.0.beta1
- old
+ new
@@ -1,15 +1,10 @@
module Bearcat
class Client < Footrest::Client
module Conferences
+ extend ClientModule
- def course_conferences(course)
- get("/api/v1/courses/#{course.to_s}/conferences")
- end
-
- def group_conferences(section)
- get("/api/v1/groups/#{section.to_s}/conferences")
- end
-
+ get :course_conferences, "/api/v1/courses/:course/conferences"
+ get :group_conferences, "/api/v1/groups/:section/conferences"
end
end
end
\ No newline at end of file