Module: Jets::Job::Helpers::SnsEventHelper

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

Instance Method Summary collapse

Instance Method Details

#sns_event_payloadObject



3
4
5
6
# File 'lib/jets/job/helpers/sns_event_helper.rb', line 3

def sns_event_payload
    message = event&.dig("Records", 0, "Sns", "Message")
    @sns_event_payload ||= ActiveSupport::HashWithIndifferentAccess.new(JSON.load(message))
end