Class: MailDiode::DeliverableMessage

Inherits:
Object
  • Object
show all
Includes:
Gurgitate::Deliver::Maildir
Defined in:
lib/maildir.rb

Instance Method Summary collapse

Constructor Details

#initialize(message_content) ⇒ DeliverableMessage

Returns a new instance of DeliverableMessage.



30
31
32
# File 'lib/maildir.rb', line 30

def initialize(message_content)
	@message = message_content
end

Instance Method Details

#save(maildir) ⇒ Object



34
35
36
# File 'lib/maildir.rb', line 34

def save(maildir)
	deliver_message(maildir)
end

#to_sObject



38
39
40
# File 'lib/maildir.rb', line 38

def to_s
	@message
end