Module: Lite::Address::Ukey

Defined in:
lib/lite/address/ukey.rb

Class Method Summary collapse

Class Method Details

.generate(value) ⇒ Object



11
12
13
14
# File 'lib/lite/address/ukey.rb', line 11

def generate(value)
  result = value.downcase.gsub(/[^0-9a-z]/i, "")
  Digest::MD5.hexdigest(result)
end