Class: Radiator::Type::Permission
- Inherits:
-
Serializer
- Object
- Serializer
- Radiator::Type::Permission
- Defined in:
- lib/radiator/type/permission.rb
Overview
Instance Method Summary collapse
-
#initialize(value) ⇒ Permission
constructor
A new instance of Permission.
- #to_bytes ⇒ Object
- #to_s ⇒ Object
Methods included from Utils
#debug, #error, #extract_signatures, #hexlify, #pakArr, #pakC, #pakHash, #pakI, #pakL!, #pakS, #pakStr, #pakc, #paks, #send_log, #unhexlify, #varint, #warning
Constructor Details
#initialize(value) ⇒ Permission
Returns a new instance of Permission.
6 7 8 |
# File 'lib/radiator/type/permission.rb', line 6 def initialize(value) super(:permission, value) end |
Instance Method Details
#to_bytes ⇒ Object
10 11 12 |
# File 'lib/radiator/type/permission.rb', line 10 def to_bytes pakHash(@value) end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/radiator/type/permission.rb', line 14 def to_s @value.to_json end |