class Recoil::Message::Notification
Public Instance Methods
process!()
click to toggle source
# File lib/recoil/message/notification.rb, line 7 def process! body = JSON.parse(message['Message']) body['bounce']['bouncedRecipients'].each do |bounce| Bounce.create!( email: bounce['emailAddress'], bounce_type: body['bounce']['bounceType'] ) end end