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.3.36 lib/bearcat/client/quizzes.rb
bearcat-1.3.35 lib/bearcat/client/quizzes.rb
bearcat-1.3.34 lib/bearcat/client/quizzes.rb
bearcat-1.3.33 lib/bearcat/client/quizzes.rb
bearcat-1.3.32 lib/bearcat/client/quizzes.rb
bearcat-1.3.30 lib/bearcat/client/quizzes.rb
bearcat-1.3.28 lib/bearcat/client/quizzes.rb
bearcat-1.3.27 lib/bearcat/client/quizzes.rb
bearcat-1.3.26 lib/bearcat/client/quizzes.rb
bearcat-1.3.25 lib/bearcat/client/quizzes.rb
bearcat-1.3.24 lib/bearcat/client/quizzes.rb
bearcat-1.3.23 lib/bearcat/client/quizzes.rb
bearcat-1.3.22 lib/bearcat/client/quizzes.rb
bearcat-1.3.21 lib/bearcat/client/quizzes.rb
bearcat-1.3.20 lib/bearcat/client/quizzes.rb
bearcat-1.3.19 lib/bearcat/client/quizzes.rb
bearcat-1.3.18 lib/bearcat/client/quizzes.rb
bearcat-1.3.17 lib/bearcat/client/quizzes.rb
bearcat-1.3.16 lib/bearcat/client/quizzes.rb
bearcat-1.3.15 lib/bearcat/client/quizzes.rb