Sha256: 7a33f67a26cf78dbcf82e46e2ad53ced8477b93cec6be86f6547b8072a8bbf1f

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

require "digest" unless defined?(Digest)

module Lite
  module Address
    module Ukey

      module_function

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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lite-address-1.1.0 lib/lite/address/ukey.rb