Class: Mail::MessageIdsElement

Inherits:
Object
  • Object
show all
Defined in:
lib/mail/elements/message_ids_element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ MessageIdsElement

Returns a new instance of MessageIdsElement



9
10
11
# File 'lib/mail/elements/message_ids_element.rb', line 9

def initialize(string)
  @message_ids = Mail::Parsers::MessageIdsParser.parse(string).message_ids.map { |msg_id| clean_msg_id(msg_id) }
end

Instance Attribute Details

#message_idsObject (readonly)

Returns the value of attribute message_ids



7
8
9
# File 'lib/mail/elements/message_ids_element.rb', line 7

def message_ids
  @message_ids
end

Instance Method Details

#message_idObject



13
14
15
# File 'lib/mail/elements/message_ids_element.rb', line 13

def message_id
  message_ids.first
end