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-3.0.14 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.13 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.12 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.11 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.10 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.9 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.8 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.7 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.6 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.5 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.4 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.3 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.19 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.2 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.1 lib/jets/job/helpers/kinesis_event_helper.rb
jets-3.0.0 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.18 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.17 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.16 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.15 lib/jets/job/helpers/kinesis_event_helper.rb