Class: EmailEvents::Service::ParseSmtpResponseForProviderId
- Inherits:
-
EmailEvents::Service
- Object
- EmailEvents::Service
- EmailEvents::Service::ParseSmtpResponseForProviderId
- Defined in:
- lib/email_events/services/parse_smtp_response_for_provider_id.rb
Instance Method Summary collapse
Methods inherited from EmailEvents::Service
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/email_events/services/parse_smtp_response_for_provider_id.rb', line 7 def call # parse the response using the applicable SmtpResponse adapter provider_id = parsed_response. return if provider_id.nil? # find our SentEmailData from our own UUID and store the provider id sent_email_data = sent_email_data_class.find_by_uuid() sent_email_data.update_attribute(:provider_message_id, provider_id) end |