Class: Mail::MessageIdsElement

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

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ MessageIdsElement

Returns a new instance of MessageIdsElement.



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

def initialize(string)
  @message_ids = parse(string)
end

Instance Attribute Details

#message_idsObject (readonly)

Returns the value of attribute message_ids.



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

def message_ids
  @message_ids
end

Class Method Details

.parse(string) ⇒ Object



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

def self.parse(string)
  new(string).tap(&:message_ids)
end

Instance Method Details

#message_idObject



18
19
20
# File 'lib/mail/elements/message_ids_element.rb', line 18

def message_id
  message_ids.first
end