Class: Kaui::UserRole

Inherits:
KillBillClient::Model::UserRoles
  • Object
show all
Defined in:
app/models/kaui/user_role.rb

Class Method Summary collapse

Class Method Details

.find_roles_by_username(username, options = {}) ⇒ Object


3
4
5
6
7
# File 'app/models/kaui/user_role.rb', line 3

def self.find_roles_by_username(username, options = {})
  user_role = Kaui::UserRole.new
  user_role.username = username
  user_role.list(options).roles
end