Sha256: 2e5917dca68f11cc9ef42fec97cd8cfa64c602d5145fb142c8546556fa900ec5
Contents?: true
Size: 296 Bytes
Versions: 10
Compression:
Stored size: 296 Bytes
Contents
module Lambdakiq module Event def jobs?(event) records(event).any? { |r| job?(r) } end def job?(record) record.dig('messageAttributes', 'lambdakiq', 'stringValue') == '1' end def records(event) event['Records'] || [] end extend self end end
Version data entries
10 entries across 10 versions & 1 rubygems