Sha256: 6776af4ea03a08e2a4016a7175c17852506af26b825bd9b0a8db055a905e21c1

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bearcat-1.2.10 lib/bearcat/client/groups.rb