Class: MailDiode::Envelope
- Inherits:
-
Object
- Object
- MailDiode::Envelope
- Defined in:
- lib/engine.rb
Instance Method Summary collapse
- #add_recipient(to_address) ⇒ Object
-
#initialize(from_address) ⇒ Envelope
constructor
A new instance of Envelope.
- #recipients ⇒ Object
- #sender ⇒ Object
Constructor Details
#initialize(from_address) ⇒ Envelope
Returns a new instance of Envelope.
65 66 67 68 |
# File 'lib/engine.rb', line 65 def initialize(from_address) @from = from_address @to = [] end |
Instance Method Details
#add_recipient(to_address) ⇒ Object
70 71 72 |
# File 'lib/engine.rb', line 70 def add_recipient(to_address) @to << to_address end |
#recipients ⇒ Object
78 79 80 |
# File 'lib/engine.rb', line 78 def recipients @to end |
#sender ⇒ Object
74 75 76 |
# File 'lib/engine.rb', line 74 def sender @from end |