Class: MList::EmailServer::Fake

Inherits:
Base
  • Object
show all
Defined in:
lib/mlist/email_server/fake.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#settings

Instance Method Summary collapse

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

#deliveriesObject (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