Sha256: fc71bc8b952d245ea395301064a3c02a13aac193c3f943727658d68f01200054

Contents?: true

Size: 846 Bytes

Versions: 13

Compression:

Stored size: 846 Bytes

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 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

13 entries across 13 versions & 1 rubygems

Version Path
bearcat-1.3.6 lib/bearcat/client/accounts.rb
bearcat-1.3.5 lib/bearcat/client/accounts.rb
bearcat-1.3.4 lib/bearcat/client/accounts.rb
bearcat-1.3.3 lib/bearcat/client/accounts.rb
bearcat-1.3.2 lib/bearcat/client/accounts.rb
bearcat-1.3.1 lib/bearcat/client/accounts.rb
bearcat-1.2.18 lib/bearcat/client/accounts.rb
bearcat-1.2.17 lib/bearcat/client/accounts.rb
bearcat-1.2.16 lib/bearcat/client/accounts.rb
bearcat-1.2.15 lib/bearcat/client/accounts.rb
bearcat-1.2.14 lib/bearcat/client/accounts.rb
bearcat-1.2.13 lib/bearcat/client/accounts.rb
bearcat-1.2.12 lib/bearcat/client/accounts.rb