Class: MailDiode::Envelope

Inherits:
Object
  • Object
show all
Defined in:
lib/engine.rb

Instance Method Summary collapse

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

#recipientsObject



78
79
80
# File 'lib/engine.rb', line 78

def recipients
  @to
end

#senderObject



74
75
76
# File 'lib/engine.rb', line 74

def sender
  @from
end