Class: Lite::Uxid::Reversible::Obfuscateid

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from Lite::Uxid::Reversible::Base

Instance Method Details

#decodeObject



14
15
16
17
18
# File 'lib/lite/uxid/reversible/obfuscateid.rb', line 14

def decode
  unscatter
  unswap
  result
end

#encodeObject



8
9
10
11
12
# File 'lib/lite/uxid/reversible/obfuscateid.rb', line 8

def encode
  swap
  scatter
  result
end