Class: MockMailer::Message
- Inherits:
-
Object
- Object
- MockMailer::Message
- Defined in:
- lib/mock_mailer.rb
Instance Method Summary collapse
- #deliver ⇒ Object
-
#initialize(name, deliveries) ⇒ Message
constructor
A new instance of Message.
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
#deliver ⇒ Object
24 25 26 |
# File 'lib/mock_mailer.rb', line 24 def deliver @deliveries << @name end |