Module: Bearcat::Client::Accounts
- Included in:
- Bearcat::Client
- Defined in:
- lib/bearcat/client/accounts.rb
Instance Method Summary collapse
- #account(account) ⇒ Object
- #account_admins(account, params = {}) ⇒ Object
- #list_accounts(params = {}) ⇒ Object
- #terms(account, params = {}) ⇒ Object
Instance Method Details
#account(account) ⇒ Object
9 10 11 |
# File 'lib/bearcat/client/accounts.rb', line 9 def account(account) get("/api/v1/accounts/#{account}") end |
#account_admins(account, params = {}) ⇒ Object
17 18 19 |
# File 'lib/bearcat/client/accounts.rb', line 17 def account_admins(account, params = {}) get("/api/v1/accounts/#{account}/admins", params) end |
#list_accounts(params = {}) ⇒ Object
5 6 7 |
# File 'lib/bearcat/client/accounts.rb', line 5 def list_accounts(params = {}) get("/api/v1/accounts", params) end |
#terms(account, params = {}) ⇒ Object
13 14 15 |
# File 'lib/bearcat/client/accounts.rb', line 13 def terms(account, params = {}) get("/api/v1/accounts/#{account}/terms", params) end |