Sha256: 05b2f51d49d3711f0897a7cf7f4040760d3831abe943daf56e0f411463a71b9f

Contents?: true

Size: 1.18 KB

Versions: 6

Compression:

Stored size: 1.18 KB

Contents

module Bearcat
  class Client < Footrest::Client
    module Accounts

      def list_accounts(params = {})
        get("/api/v1/accounts", params)
      end

      def account(account)
        get("/api/v1/accounts/#{account}")
      end

      def terms(account, params = {})
        get("/api/v1/accounts/#{account}/terms", params)
      end

      def account_admins(account, params = {})
        get("/api/v1/accounts/#{account}/admins", params)
      end

      def create_account_admin(account, params = {})
        post("/api/v1/accounts/#{account}/admins", params)
      end

      def delete_account_admin(account, user, params = {})
        delete("/api/v1/accounts/#{account}/admins/#{user}", params)
      end

      def list_roles(account, params = {})
        get("/api/v1/accounts/#{account}/roles")
      end

      def account_roles(account, params = {})
        get("/api/v1/accounts/#{account}/roles", params)
      end

      def account_courses(account, params = {})
        get("/api/v1/accounts/#{account}/courses", params)
      end

      def account_grading_standards(account, params={})
        get("/api/v1/accounts/#{account}/grading_standards", params)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bearcat-1.3.12 lib/bearcat/client/accounts.rb
bearcat-1.3.11 lib/bearcat/client/accounts.rb
bearcat-1.3.10 lib/bearcat/client/accounts.rb
bearcat-1.3.9 lib/bearcat/client/accounts.rb
bearcat-1.3.8 lib/bearcat/client/accounts.rb
bearcat-1.3.7 lib/bearcat/client/accounts.rb