Sha256: c52fc7e1f75be522826b7c54c108c10ba72ccceba21f079826cec0c132d86d05

Contents?: true

Size: 848 Bytes

Versions: 5

Compression:

Stored size: 848 Bytes

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 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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bearcat-1.2.18 lib/bearcat/client/quizzes.rb
bearcat-1.2.17 lib/bearcat/client/quizzes.rb
bearcat-1.2.16 lib/bearcat/client/quizzes.rb
bearcat-1.2.15 lib/bearcat/client/quizzes.rb
bearcat-1.2.14 lib/bearcat/client/quizzes.rb