Sha256: e094d2ef0ecf33e9ddb70bc2987f1e4a903ab0b0a80245c73ee42c94028cb346

Contents?: true

Size: 884 Bytes

Versions: 34

Compression:

Stored size: 884 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}", params)
      end

    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
bearcat-1.4.13 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.12 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.11 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.10 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.9 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.8 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.7 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.6 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.5 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.4 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.3 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.2 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.1 lib/bearcat/client/assignment_groups.rb
bearcat-1.4.0 lib/bearcat/client/assignment_groups.rb
bearcat-1.3.55 lib/bearcat/client/assignment_groups.rb
bearcat-1.3.53 lib/bearcat/client/assignment_groups.rb
bearcat-1.3.52 lib/bearcat/client/assignment_groups.rb
bearcat-1.3.51 lib/bearcat/client/assignment_groups.rb
bearcat-1.3.49 lib/bearcat/client/assignment_groups.rb
bearcat-1.3.48 lib/bearcat/client/assignment_groups.rb