Module: Bearcat::Client::Roles

Extended by:
ClientModule
Defined in:
lib/bearcat/client/roles.rb

Constant Summary

Constants included from ClientModule

ClientModule::ARG_REGEX

Instance Attribute Summary

Attributes included from ClientModule

#_registered_endpoints

Instance Method Summary collapse

Methods included from ClientModule

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, ='self', params={})
  get("/api/v1/accounts/#{}/roles/#{role_id}", params)
end

#roles(account_id = 'self', params = {}) ⇒ Object



6
7
8
# File 'lib/bearcat/client/roles.rb', line 6

def roles(='self', params={})
  get("/api/v1/accounts/#{}/roles", params)
end