Class: MailMessageObserver
- Inherits:
-
Object
- Object
- MailMessageObserver
- Defined in:
- lib/message_observers.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize ⇒ MailMessageObserver
constructor
A new instance of MailMessageObserver.
- #update(message_string) ⇒ Object
Constructor Details
#initialize ⇒ MailMessageObserver
Returns a new instance of MailMessageObserver.
26 27 28 |
# File 'lib/message_observers.rb', line 26 def initialize @messages = [] end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
24 25 26 |
# File 'lib/message_observers.rb', line 24 def @messages end |
Instance Method Details
#update(message_string) ⇒ Object
30 31 32 |
# File 'lib/message_observers.rb', line 30 def update() @messages << Mail.read_from_string() end |