Class: MailRoom::IMAP::Message

Inherits:
Message
  • Object
show all
Defined in:
lib/mail_room/imap/message.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#body, #uid

Instance Method Summary collapse

Constructor Details

#initialize(uid:, body:, seqno:) ⇒ Message

Returns a new instance of Message.


8
9
10
11
12
# File 'lib/mail_room/imap/message.rb', line 8

def initialize(uid:, body:, seqno:)
  super(uid: uid, body: body)

  @seqno = seqno
end

Instance Attribute Details

#seqnoObject (readonly)

Returns the value of attribute seqno.


6
7
8
# File 'lib/mail_room/imap/message.rb', line 6

def seqno
  @seqno
end

Instance Method Details

#==(other) ⇒ Object


14
15
16
# File 'lib/mail_room/imap/message.rb', line 14

def ==(other)
  super && seqno == other.seqno
end