Class: SnowplowTracker::Timestamp

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

Direct Known Subclasses

DeviceTimestamp, TrueTimestamp

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, value) ⇒ Timestamp

Returns a new instance of Timestamp.



23
24
25
26
# File 'lib/snowplow-tracker/timestamp.rb', line 23

def initialize(type, value)
    @type = type
    @value = value
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



20
21
22
# File 'lib/snowplow-tracker/timestamp.rb', line 20

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



21
22
23
# File 'lib/snowplow-tracker/timestamp.rb', line 21

def value
  @value
end