Module: Jets::Job::Helpers::KinesisEventHelper

Included in:
Base
Defined in:
lib/jets/job/helpers/kinesis_event_helper.rb

Instance Method Summary collapse

Instance Method Details

#kinesis_dataObject



5
6
7
8
9
10
11
# File 'lib/jets/job/helpers/kinesis_event_helper.rb', line 5

def kinesis_data
  records = event["Records"]
  records.map do |record|
    encoded = record["kinesis"]["data"]
    Base64.decode64(encoded) # data
  end
end