class Postmortem::Adapters::Mail

Mail adapter.

Private Instance Methods

adapted() click to toggle source
# File lib/postmortem/adapters/mail.rb, line 9
def adapted
  %i[from reply_to to cc bcc subject message_id]
    .map { |field| [field, mail.public_send(field)] }
    .to_h
    .merge({ text_body: text_part, html_body: html_part })
end
mail() click to toggle source
# File lib/postmortem/adapters/mail.rb, line 16
def mail
  @mail ||= @data
end