Class: Postmark::MailMessageConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/postmark/mail_message_converter.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ MailMessageConverter

Returns a new instance of MailMessageConverter.



5
6
7
# File 'lib/postmark/mail_message_converter.rb', line 5

def initialize(message)
  @message = message
end

Instance Method Details

#runObject



9
10
11
# File 'lib/postmark/mail_message_converter.rb', line 9

def run
  delete_blank_fields(pick_fields(convert, @message.templated?))
end