Class: Mailthis::Message
- Inherits:
-
Object
- Object
- Mailthis::Message
- Defined in:
- lib/mailthis/message.rb
Instance Method Summary collapse
- #bcc(*args) ⇒ Object
- #bcc=(value) ⇒ Object
- #body(*args) ⇒ Object
- #body=(value) ⇒ Object
- #cc(*args) ⇒ Object
- #cc=(value) ⇒ Object
- #from(*args) ⇒ Object
- #from=(value) ⇒ Object
-
#initialize ⇒ Message
constructor
A new instance of Message.
- #reply_to(*args) ⇒ Object
- #reply_to=(value) ⇒ Object
- #subject(*args) ⇒ Object
- #subject=(value) ⇒ Object
- #to(*args) ⇒ Object
- #to=(value) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Message
Returns a new instance of Message.
7 8 9 |
# File 'lib/mailthis/message.rb', line 7 def initialize @mail = ::Mail.new end |
Instance Method Details
#bcc(*args) ⇒ Object
15 |
# File 'lib/mailthis/message.rb', line 15 def bcc(*args); @mail.bcc(*args); end |
#bcc=(value) ⇒ Object
23 |
# File 'lib/mailthis/message.rb', line 23 def bcc=(value); @mail.bcc = value; end |
#body(*args) ⇒ Object
17 |
# File 'lib/mailthis/message.rb', line 17 def body(*args); @mail.body(*args); end |
#body=(value) ⇒ Object
25 |
# File 'lib/mailthis/message.rb', line 25 def body=(value); @mail.body = value; end |
#cc(*args) ⇒ Object
14 |
# File 'lib/mailthis/message.rb', line 14 def cc(*args); @mail.cc(*args); end |
#cc=(value) ⇒ Object
22 |
# File 'lib/mailthis/message.rb', line 22 def cc=(value); @mail.cc = value; end |
#from(*args) ⇒ Object
11 |
# File 'lib/mailthis/message.rb', line 11 def from(*args); @mail.from(*args); end |
#from=(value) ⇒ Object
19 |
# File 'lib/mailthis/message.rb', line 19 def from=(value); @mail.from = value; end |
#reply_to(*args) ⇒ Object
12 |
# File 'lib/mailthis/message.rb', line 12 def reply_to(*args); @mail.reply_to(*args); end |
#reply_to=(value) ⇒ Object
20 |
# File 'lib/mailthis/message.rb', line 20 def reply_to=(value); @mail.reply_to = value; end |
#subject(*args) ⇒ Object
16 |
# File 'lib/mailthis/message.rb', line 16 def subject(*args); @mail.subject(*args); end |
#subject=(value) ⇒ Object
24 |
# File 'lib/mailthis/message.rb', line 24 def subject=(value); @mail.subject = value; end |
#to(*args) ⇒ Object
13 |
# File 'lib/mailthis/message.rb', line 13 def to(*args); @mail.to(*args); end |
#to=(value) ⇒ Object
21 |
# File 'lib/mailthis/message.rb', line 21 def to=(value); @mail.to = value; end |
#to_s ⇒ Object
27 28 29 |
# File 'lib/mailthis/message.rb', line 27 def to_s @mail.to_s end |