Module: HashIdentable::HshFunction
- Defined in:
- lib/hash_identable/hsh_function.rb
Class Method Summary collapse
Class Method Details
.decode(item) ⇒ Object
14 15 16 |
# File 'lib/hash_identable/hsh_function.rb', line 14 def self.decode item hashing_object.decode item end |
.encode(key) ⇒ Object
10 11 12 |
# File 'lib/hash_identable/hsh_function.rb', line 10 def self.encode key hashing_object.encode key end |
.hashing_object ⇒ Object
6 7 8 |
# File 'lib/hash_identable/hsh_function.rb', line 6 def self.hashing_object @hashing_object ||= Hashids.new(salt, hash_length) end |