Class: Feedigest::MailComposer
- Inherits:
-
Object
- Object
- Feedigest::MailComposer
- Defined in:
- lib/feedigest/mail_composer.rb
Defined Under Namespace
Classes: Mail
Instance Attribute Summary collapse
-
#feeds ⇒ Object
readonly
Returns the value of attribute feeds.
Instance Method Summary collapse
-
#initialize(feeds) ⇒ MailComposer
constructor
A new instance of MailComposer.
- #mail ⇒ Object
Constructor Details
#initialize(feeds) ⇒ MailComposer
Returns a new instance of MailComposer.
11 12 13 |
# File 'lib/feedigest/mail_composer.rb', line 11 def initialize(feeds) @feeds = feeds end |
Instance Attribute Details
#feeds ⇒ Object (readonly)
Returns the value of attribute feeds.
9 10 11 |
# File 'lib/feedigest/mail_composer.rb', line 9 def feeds @feeds end |
Instance Method Details
#mail ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/feedigest/mail_composer.rb', line 15 def mail @mail ||= Mail.new( Feedigest.config.fetch(:email_sender), Feedigest.config.fetch(:email_recipient), subject, html_body, text_body ) end |