Class: SnowplowTracker::TrueTimestamp

Inherits:
Timestamp
  • Object
show all
Defined in:
lib/snowplow-tracker/timestamp.rb

Overview

A very simple class that stores a timestamp, i.e. a numeric value representing milliseconds since the Unix epoch, and which type of timestamp it is, namely ttm. This raw event ttm field will be processed into true_tstamp in the completed event.

See Also:

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ TrueTimestamp

Returns a new instance of TrueTimestamp.

Examples:

SnowplowTracker::TrueTimestamp.new(1633596346786)

Parameters:

  • value (Num)

    timestamp in milliseconds since the Unix epoch



96
97
98
# File 'lib/snowplow-tracker/timestamp.rb', line 96

def initialize(value)
  super 'ttm', value
end