Class: FlowmailerRails::MailConverter
- Inherits:
-
Object
- Object
- FlowmailerRails::MailConverter
- Defined in:
- lib/flowmailer_rails/mail_converter.rb
Instance Attribute Summary collapse
-
#rails_mail ⇒ Object
readonly
Returns the value of attribute rails_mail.
Instance Method Summary collapse
-
#initialize(rails_mail) ⇒ MailConverter
constructor
A new instance of MailConverter.
- #recipients_as_json ⇒ Object
Constructor Details
#initialize(rails_mail) ⇒ MailConverter
Returns a new instance of MailConverter.
7 8 9 |
# File 'lib/flowmailer_rails/mail_converter.rb', line 7 def initialize(rails_mail) @rails_mail = rails_mail end |
Instance Attribute Details
#rails_mail ⇒ Object (readonly)
Returns the value of attribute rails_mail.
5 6 7 |
# File 'lib/flowmailer_rails/mail_converter.rb', line 5 def rails_mail @rails_mail end |
Instance Method Details
#recipients_as_json ⇒ Object
11 12 13 14 15 |
# File 'lib/flowmailer_rails/mail_converter.rb', line 11 def recipients_as_json recipient_addresses.map do |recipient| JSON.dump(as_json.merge(recipientAddress: recipient)) end end |