Sha256: 406a92f7d4ad7fe30a1da4644c176d4a2efac6c004503c7ffe48fbba91fc0dd1

Contents?: true

Size: 1.23 KB

Versions: 10

Compression:

Stored size: 1.23 KB

Contents

module Bearcat
  class Client < Footrest::Client
    module Quizzes

      def list_course_quizzes(course, params={})
        get("/api/v1/courses/#{course}/quizzes", params)
      end

      def quiz(course, quiz, params={})
        get("/api/v1/courses/#{course}/quizzes/#{quiz}", params)
      end

      def edit_quiz(course, quiz, params={})
        put("/api/v1/courses/#{course}/quizzes/#{quiz}", params)
      end

      def quiz_extensions(course, quiz, params={})
        post("/api/v1/courses/#{course}/quizzes/#{quiz}/extensions", params)
      end

      def quiz_assignment_overrides(course, params={})
        get("/api/v1/courses/#{course}/quizzes/assignment_overrides", params)
      end

      def quiz_questions(course, quiz, params={})
        get("/api/v1/courses/#{course}/quizzes/#{quiz}/questions", params)
      end

      def create_quiz(course, params={})
        post("/api/v1/courses/#{course}/quizzes", params)
      end

      def create_quiz_report(course, quiz, params={})
        post("/api/v1/courses/#{course}/quizzes/#{quiz}/reports", params)
      end

      def get_quiz_report(course, quiz, report, params)
        get("/api/v1/courses/#{course}/quizzes/#{quiz}/reports/#{report}", params)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bearcat-1.4.13 lib/bearcat/client/quizzes.rb
bearcat-1.4.12 lib/bearcat/client/quizzes.rb
bearcat-1.4.11 lib/bearcat/client/quizzes.rb
bearcat-1.4.10 lib/bearcat/client/quizzes.rb
bearcat-1.4.9 lib/bearcat/client/quizzes.rb
bearcat-1.4.8 lib/bearcat/client/quizzes.rb
bearcat-1.4.7 lib/bearcat/client/quizzes.rb
bearcat-1.4.6 lib/bearcat/client/quizzes.rb
bearcat-1.4.5 lib/bearcat/client/quizzes.rb
bearcat-1.4.4 lib/bearcat/client/quizzes.rb