Class: Rubycord::AuditLogs::RoleChange
- Inherits:
-
Object
- Object
- Rubycord::AuditLogs::RoleChange
- Defined in:
- lib/rubycord/data/audit_logs.rb
Overview
A change that includes roles.
Instance Attribute Summary collapse
-
#type ⇒ Symbol
readonly
What type of change this is: (:add, :remove).
Instance Method Summary collapse
-
#role ⇒ Role
The role being used.
Instance Attribute Details
#type ⇒ Symbol (readonly)
Returns what type of change this is: (:add, :remove).
258 259 260 |
# File 'lib/rubycord/data/audit_logs.rb', line 258 def type @type end |
Instance Method Details
#role ⇒ Role
Returns the role being used.
268 269 270 |
# File 'lib/rubycord/data/audit_logs.rb', line 268 def role @role ||= @server.role(@role_id) end |