Sha256: 30bc51126574323dc1639df2ada4fa00341401669ecf114bb6590b1deb3cb651
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
# frozen_string_literal: true require 'securerandom' module SnowplowRubyDuid # Generates a pseudo-unique ID to fingerprint the user # It follows Snowplow Javascript: https://github.com/snowplow/snowplow-javascript-tracker/blob/2.14.0/src/js/tracker.js#L670-L672 class DomainUserid def initialize @domain_user_id = domain_user_id end def to_s @domain_user_id end private def domain_user_id SecureRandom.uuid end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snowplow_ruby_duid-1.1.0 | lib/snowplow_ruby_duid/domain_userid.rb |
snowplow_ruby_duid-1.1.0.prerelease.1 | lib/snowplow_ruby_duid/domain_userid.rb |