Class: SnowplowRubyDuid::DomainUserid

Inherits:
Object
  • Object
show all
Defined in:
lib/snowplow_ruby_duid/domain_userid.rb

Overview

Generates a pseudo-unique ID to fingerprint the user It follows Snowplow Javascript: github.com/snowplow/snowplow-javascript-tracker/blob/2.14.0/src/js/tracker.js#L670-L672

Instance Method Summary collapse

Constructor Details

#initializeDomainUserid

Returns a new instance of DomainUserid.



9
10
11
# File 'lib/snowplow_ruby_duid/domain_userid.rb', line 9

def initialize
  @domain_user_id = domain_user_id
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/snowplow_ruby_duid/domain_userid.rb', line 13

def to_s
  @domain_user_id
end