Class: Journaled::DeliveryJob::KinesisRecord

Inherits:
Struct
  • Object
show all
Defined in:
app/jobs/journaled/delivery_job.rb

Instance Method Summary collapse

Constructor Details

#initialize(serialized_event:, partition_key:, stream_name:) ⇒ KinesisRecord



24
25
26
# File 'app/jobs/journaled/delivery_job.rb', line 24

def initialize(serialized_event:, partition_key:, stream_name:)
  super(serialized_event: serialized_event, partition_key: partition_key, stream_name: stream_name)
end

Instance Method Details

#to_hObject



28
29
30
# File 'app/jobs/journaled/delivery_job.rb', line 28

def to_h
  { stream_name: stream_name, data: serialized_event, partition_key: partition_key }
end