Sha256: 76aa7203a0239fef1aeca833a8fb50c8e12acfb43ab4fea973a66d29ddf1e7c0

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module Groups

      def course_groups(course)
        get("/api/v1/courses/#{course.to_s}/groups")
      end

      def account_groups(account_id)
        get("/api/v1/accounts/#{account_id}/groups")
      end

      def group(id)
        get("/api/v1/groups/#{id}")
      end

      def create_group(group_category_id, params={})
        post("/api/v1/group_categories/#{group_category_id}/groups", params)
      end

      def edit_group(group_id, params={})
        put("/api/v1/groups/#{group_id}", params)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bearcat-1.2.12 lib/bearcat/client/groups.rb
bearcat-1.2.11 lib/bearcat/client/groups.rb