Class: Hackle::TrackEvent

Inherits:
UserEvent show all
Defined in:
lib/hackle/internal/event/user_event.rb

Instance Attribute Summary collapse

Attributes inherited from UserEvent

#insert_id, #timestamp, #user

Instance Method Summary collapse

Methods inherited from UserEvent

exposure, remote_config, track

Constructor Details

#initialize(insert_id:, timestamp:, user:, event_type:, event:) ⇒ TrackEvent



137
138
139
140
141
142
143
144
145
146
147
# File 'lib/hackle/internal/event/user_event.rb', line 137

def initialize(
  insert_id:,
  timestamp:,
  user:,
  event_type:,
  event:
)
  super(insert_id: insert_id, timestamp: timestamp, user: user)
  @event_type = event_type
  @event = event
end

Instance Attribute Details

#eventEvent (readonly)



130
131
132
# File 'lib/hackle/internal/event/user_event.rb', line 130

def event
  @event
end

#event_typeEventType (readonly)



127
128
129
# File 'lib/hackle/internal/event/user_event.rb', line 127

def event_type
  @event_type
end