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-2.3.14 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.13 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.12 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.11 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.10 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.9 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.8 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.7 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.6 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.5 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.4 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.3 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.2 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.1 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.3.0 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.2.5 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.2.4 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.2.3 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.2.2 lib/jets/job/helpers/kinesis_event_helper.rb
jets-2.2.1 lib/jets/job/helpers/kinesis_event_helper.rb