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.
64 65 66 67 |
# File 'lib/engine.rb', line 64 def initialize(from_address) @from = from_address @to = [] end |
Instance Method Details
#add_recipient(to_address) ⇒ Object
69 70 71 |
# File 'lib/engine.rb', line 69 def add_recipient(to_address) @to << to_address end |
#recipients ⇒ Object
77 78 79 |
# File 'lib/engine.rb', line 77 def recipients @to end |
#sender ⇒ Object
73 74 75 |
# File 'lib/engine.rb', line 73 def sender @from end |