Module: Bearcat::Client::Roles
- Extended by:
- ClientModule
- Defined in:
- lib/bearcat/client/roles.rb
Constant Summary
ClientModule::ARG_REGEX
Instance Attribute Summary
Attributes included from ClientModule
#_registered_endpoints
Instance Method Summary
collapse
context_types, endpoint, prefix
Instance Method Details
#role(role_id, account_id = 'self', params = {}) ⇒ Object
10
11
12
|
# File 'lib/bearcat/client/roles.rb', line 10
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
6
7
8
|
# File 'lib/bearcat/client/roles.rb', line 6
def roles(account_id='self', params={})
get("/api/v1/accounts/#{account_id}/roles", params)
end
|