Class ActionMessenger::Message
In: lib/action_messenger/message.rb
Parent: Object

A message which will be sent, or which has been received.

Methods

==  

Attributes

body  [RW]  The body of the message.
from  [RW]  The sender of the message.
subject  [RW]  The subject of the message.
to  [RW]  The recipient of the message.

Public Instance methods

Compares this object with another for equality.

The other object is considered equal if it is not nil and all its fields are the same as this object‘s fields.

[Source]

    # File lib/action_messenger/message.rb, line 21
21:     def ==(that)
22:       return false if that.nil?
23:       to == that.to and from == that.from and body == that.body and subject == that.subject
24:     end

[Validate]