Class: Rubycord::Role::RoleWriter
- Inherits:
-
Object
- Object
- Rubycord::Role::RoleWriter
- Defined in:
- lib/rubycord/data/role.rb
Overview
This class is used internally as a wrapper to a Role object that allows easy writing of permission data.
Instance Method Summary collapse
-
#inspect ⇒ Object
The inspect method is overridden, in this case to prevent the token being leaked.
-
#write(bits) ⇒ Object
Write the specified permission data to the role, without updating the permission cache.
Instance Method Details
#inspect ⇒ Object
The inspect method is overridden, in this case to prevent the token being leaked
84 85 86 |
# File 'lib/rubycord/data/role.rb', line 84 def inspect "<RoleWriter role=#{@role} token=...>" end |
#write(bits) ⇒ Object
Write the specified permission data to the role, without updating the permission cache
79 80 81 |
# File 'lib/rubycord/data/role.rb', line 79 def write(bits) @role.send(:packed=, bits, false) end |