Class: MList::EmailServer::Fake
- Defined in:
- lib/mlist/email_server/fake.rb
Instance Attribute Summary collapse
-
#deliveries ⇒ Object
readonly
Returns the value of attribute deliveries.
Attributes inherited from Base
Instance Method Summary collapse
- #deliver(tmail) ⇒ Object
-
#initialize(settings = {}) ⇒ Fake
constructor
A new instance of Fake.
Methods inherited from Base
#generate_message_id, #receive, #receiver
Constructor Details
#initialize(settings = {}) ⇒ Fake
Returns a new instance of Fake.
6 7 8 9 |
# File 'lib/mlist/email_server/fake.rb', line 6 def initialize(settings = {}) super @deliveries = [] end |
Instance Attribute Details
#deliveries ⇒ Object (readonly)
Returns the value of attribute deliveries.
4 5 6 |
# File 'lib/mlist/email_server/fake.rb', line 4 def deliveries @deliveries end |
Instance Method Details
#deliver(tmail) ⇒ Object
11 12 13 |
# File 'lib/mlist/email_server/fake.rb', line 11 def deliver(tmail) @deliveries << tmail end |