Class: SolidFlow::Event

Inherits:
ApplicationRecord show all
Defined in:
app/models/solidflow/event.rb

Instance Method Summary collapse

Instance Method Details

#to_replay_eventObject



13
14
15
16
17
18
19
20
21
# File 'app/models/solidflow/event.rb', line 13

def to_replay_event
  Replay::Event.new(
    id: id,
    type: event_type,
    sequence: sequence,
    payload: payload,
    recorded_at: recorded_at
  )
end