Sha256: 5a4d1ba7dc75ebf03a1ff7683cc75af0ddd2632344b69ba3f917deb73fc85093

Contents?: true

Size: 903 Bytes

Versions: 34

Compression:

Stored size: 903 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module Assignments

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

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

      def assignment_overrides(course, assignment)
        get("/api/v1/courses/#{course}/assignments/#{assignment}/overrides")
      end

      def create_assignment_override(course, assignment, params)
        post("api/v1/courses/#{course}/assignments/#{assignment}/overrides", params)
      end

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

      def edit_assignment(course, assignment, params={})
        put("/api/v1/courses/#{course}/assignments/#{assignment}", params)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
bearcat-1.2.17 lib/bearcat/client/assignments.rb
bearcat-1.2.16 lib/bearcat/client/assignments.rb
bearcat-1.2.15 lib/bearcat/client/assignments.rb
bearcat-1.2.14 lib/bearcat/client/assignments.rb
bearcat-1.2.13 lib/bearcat/client/assignments.rb
bearcat-1.2.12 lib/bearcat/client/assignments.rb
bearcat-1.2.11 lib/bearcat/client/assignments.rb
bearcat-1.2.10 lib/bearcat/client/assignments.rb
bearcat-1.2.9 lib/bearcat/client/assignments.rb
bearcat-1.2.7 lib/bearcat/client/assignments.rb
bearcat-1.2.6 lib/bearcat/client/assignments.rb
bearcat-1.2.5 lib/bearcat/client/assignments.rb
bearcat-1.2.4 lib/bearcat/client/assignments.rb
bearcat-1.2.3 lib/bearcat/client/assignments.rb