Sha256: b090ce3b153c20c77ccb5a1dac79324aad8bac20c8d1d09e575dc1ca3440cf8e

Contents?: true

Size: 876 Bytes

Versions: 1

Compression:

Stored size: 876 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module AssignmentGroups

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

      def assignment_group(course_id, assignment_group_id, params={})
        get("/api/v1/courses/#{course_id}/assignment_groups/#{assignment_group_id}", params)
      end

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

      def update_assignment_group(course, assignment_group_id, params={})
        put("/api/v1/courses/#{course}/assignment_groups/#{assignment_group_id}", params)
      end

      def delete_assignment_group(course, assignment_group_id, params={})
        delete("/api/v1/courses/#{course}/assignment_groups/#{assignment_group_id}")
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bearcat-1.3.32 lib/bearcat/client/assignment_groups.rb