Class: Feedigest::MailSender

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/feedigest/mail_sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dataObject (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

#deliverObject



16
17
18
19
# File 'lib/feedigest/mail_sender.rb', line 16

def deliver
  setup_delivery_method!(mail)
  mail.deliver
end