Class: MOCO::UserRole
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- MOCO::UserRole
- Defined in:
- lib/moco/entities/user_role.rb
Overview
Represents a MOCO user permission role Read-only list of available permission roles
Read-only attributes:
id, name, created_at, updated_at
Common roles:
- Admin
- Manager
- Coworker
- etc.
Note:
Permission roles are configured in MOCO's admin interface.
Use role_id when creating/updating users to assign a role.
Instance Attribute Summary
Attributes inherited from BaseEntity
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseEntity
#==, #association, #destroy, #eql?, #has_many, #hash, #id, #initialize, #inspect, #reload, #save, #to_h, #to_json, #update
Constructor Details
This class inherits a constructor from MOCO::BaseEntity
Class Method Details
.entity_path ⇒ Object
21 22 23 |
# File 'lib/moco/entities/user_role.rb', line 21 def self.entity_path "users/roles" end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/moco/entities/user_role.rb', line 25 def to_s name.to_s end |