Sha256: b7c1aecf4630273711a421fddbb6cb979bde59ea10acafd963e70a6ac2db6976

Contents?: true

Size: 268 Bytes

Versions: 139

Compression:

Stored size: 268 Bytes

Contents

require 'base64'

module Jets::Job::Helpers
  module KinesisEventHelper
    def kinesis_data
      records = event["Records"]
      records.map do |record|
        encoded = record["kinesis"]["data"]
        Base64.decode64(encoded) # data
      end
    end
  end
end

Version data entries

139 entries across 139 versions & 3 rubygems

Version Path
jets-4.0.12 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.11 lib/jets/job/helpers/kinesis_event_helper.rb
jets-5.0.6 lib/jets/job/helpers/kinesis_event_helper.rb
jets-5.0.5 lib/jets/job/helpers/kinesis_event_helper.rb
jets-5.0.4 lib/jets/job/helpers/kinesis_event_helper.rb
jets-5.0.3 lib/jets/job/helpers/kinesis_event_helper.rb
jets-5.0.2 lib/jets/job/helpers/kinesis_event_helper.rb
jets-5.0.1 lib/jets/job/helpers/kinesis_event_helper.rb
jets-5.0.0 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.10 lib/jets/job/helpers/kinesis_event_helper.rb
jets-5.0.0.beta1 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.9 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.8 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.7 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.6 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.5 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.4 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.3 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.2 lib/jets/job/helpers/kinesis_event_helper.rb
jets-4.0.1 lib/jets/job/helpers/kinesis_event_helper.rb