Class: SnowplowTracker::DeviceTimestamp

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 dtm. This raw event dtm field will be processed into dvce_created_tstamp in the completed event.

See Also:

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ DeviceTimestamp

Returns a new instance of DeviceTimestamp.

Examples:

SnowplowTracker::DeviceTimestamp.new(1633596346786)

Parameters:

  • value (Num)

    timestamp in milliseconds since the Unix epoch



110
111
112
# File 'lib/snowplow-tracker/timestamp.rb', line 110

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