Class: MockMailer::Message

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

Instance Method Summary collapse

Constructor Details

#initialize(name, deliveries) ⇒ Message

Returns a new instance of Message.



19
20
21
22
# File 'lib/mock_mailer.rb', line 19

def initialize(name, deliveries)
  @name = name
  @deliveries = deliveries
end

Instance Method Details

#deliverObject



24
25
26
# File 'lib/mock_mailer.rb', line 24

def deliver
  @deliveries << @name
end