Class: Feedigest::MailSender
- Inherits:
-
Object
- Object
- Feedigest::MailSender
- Extended by:
- Forwardable
- Defined in:
- lib/feedigest/mail_sender.rb
Instance Attribute Summary collapse
-
#mail_data ⇒ Object
readonly
Returns the value of attribute mail_data.
Instance Method Summary collapse
- #deliver ⇒ Object
-
#initialize(mail_data) ⇒ MailSender
constructor
A new instance of MailSender.
Constructor Details
#initialize(mail_data) ⇒ MailSender
Returns a new instance of MailSender.
12 13 14 |
# File 'lib/feedigest/mail_sender.rb', line 12 def initialize(mail_data) @mail_data = mail_data end |
Instance Attribute Details
#mail_data ⇒ Object (readonly)
Returns the value of attribute mail_data.
8 9 10 |
# File 'lib/feedigest/mail_sender.rb', line 8 def mail_data @mail_data end |
Instance Method Details
#deliver ⇒ Object
16 17 18 19 |
# File 'lib/feedigest/mail_sender.rb', line 16 def deliver setup_delivery_method!(mail) mail.deliver end |