Class: MockMailer
- Inherits:
-
Object
- Object
- MockMailer
- Defined in:
- lib/mock_mailer.rb,
lib/mock_mailer/version.rb
Defined Under Namespace
Classes: Message
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Attribute Summary collapse
-
#deliveries ⇒ Object
readonly
Returns the value of attribute deliveries.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize ⇒ MockMailer
constructor
A new instance of MockMailer.
- #method_missing(*args) ⇒ Object
Constructor Details
#initialize ⇒ MockMailer
Returns a new instance of MockMailer.
7 8 9 10 |
# File 'lib/mock_mailer.rb', line 7 def initialize @messages = [] @deliveries = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#deliveries ⇒ Object (readonly)
Returns the value of attribute deliveries.
5 6 7 |
# File 'lib/mock_mailer.rb', line 5 def deliveries @deliveries end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
5 6 7 |
# File 'lib/mock_mailer.rb', line 5 def @messages end |