Class: MailRoom::Message
- Inherits:
-
Object
- Object
- MailRoom::Message
- Defined in:
- lib/mail_room/message.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uid:, body:) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(uid:, body:) ⇒ Message
Returns a new instance of Message.
7 8 9 10 |
# File 'lib/mail_room/message.rb', line 7 def initialize(uid:, body:) @uid = uid @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/mail_room/message.rb', line 5 def body @body end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
5 6 7 |
# File 'lib/mail_room/message.rb', line 5 def uid @uid end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 |
# File 'lib/mail_room/message.rb', line 12 def ==(other) self.class == other.class && uid == other.uid && body == other.body end |