Sha256: 640675601648692f2f5bc65b024e994a57b11fcb39e83f217605240006132dab

Contents?: true

Size: 969 Bytes

Versions: 54

Compression:

Stored size: 969 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 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
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
bearcat-1.4.3 lib/bearcat/client/quizzes.rb
bearcat-1.4.2 lib/bearcat/client/quizzes.rb
bearcat-1.4.1 lib/bearcat/client/quizzes.rb
bearcat-1.4.0 lib/bearcat/client/quizzes.rb
bearcat-1.3.55 lib/bearcat/client/quizzes.rb
bearcat-1.3.53 lib/bearcat/client/quizzes.rb
bearcat-1.3.52 lib/bearcat/client/quizzes.rb
bearcat-1.3.51 lib/bearcat/client/quizzes.rb
bearcat-1.3.49 lib/bearcat/client/quizzes.rb
bearcat-1.3.48 lib/bearcat/client/quizzes.rb
bearcat-1.3.47 lib/bearcat/client/quizzes.rb
bearcat-1.3.46 lib/bearcat/client/quizzes.rb
bearcat-1.3.45 lib/bearcat/client/quizzes.rb
bearcat-1.3.44 lib/bearcat/client/quizzes.rb
bearcat-1.3.43 lib/bearcat/client/quizzes.rb
bearcat-1.3.41 lib/bearcat/client/quizzes.rb
bearcat-1.3.40 lib/bearcat/client/quizzes.rb
bearcat-1.3.39 lib/bearcat/client/quizzes.rb
bearcat-1.3.38 lib/bearcat/client/quizzes.rb
bearcat-1.3.37 lib/bearcat/client/quizzes.rb