Sha256: e185cec21b1fe0c9ba281e0bc0dc923c850aac64ec57ae86b7656e6b0a853d7d

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 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

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bearcat-1.0.23 lib/bearcat/client/accounts.rb
bearcat-1.0.22 lib/bearcat/client/accounts.rb