Class: Lite::Uxid::Reversible::Obfuscateid
- Inherits:
-
Base
- Object
- Base
- Lite::Uxid::Reversible::Obfuscateid
show all
- Defined in:
- lib/lite/uxid/reversible/obfuscateid.rb
Instance Attribute Summary
Attributes inherited from Base
#id, #opts
Instance Method Summary
collapse
Methods inherited from Base
decode, encode, #initialize
Instance Method Details
#decode ⇒ Object
14
15
16
17
18
|
# File 'lib/lite/uxid/reversible/obfuscateid.rb', line 14
def decode
unscatter
unswap
result
end
|
#encode ⇒ Object
8
9
10
11
12
|
# File 'lib/lite/uxid/reversible/obfuscateid.rb', line 8
def encode
swap
scatter
result
end
|