Module: Bearcat::Client::Roles
- Defined in:
- lib/bearcat/client/roles.rb
Instance Method Summary collapse
- #role(role_id, account_id = 'self', params = {}) ⇒ Object
- #roles(account_id = 'self', params = {}) ⇒ Object
Instance Method Details
#role(role_id, account_id = 'self', params = {}) ⇒ Object
9 10 11 |
# File 'lib/bearcat/client/roles.rb', line 9 def role(role_id, account_id='self', params={}) get("/api/v1/accounts/#{account_id}/roles/#{role_id}", params) end |
#roles(account_id = 'self', params = {}) ⇒ Object
5 6 7 |
# File 'lib/bearcat/client/roles.rb', line 5 def roles(account_id='self', params={}) get("/api/v1/accounts/#{account_id}/roles", params) end |