Class: Mail::MessageIdsElement
- Inherits:
-
Object
- Object
- Mail::MessageIdsElement
- Defined in:
- lib/mail/elements/message_ids_element.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#message_ids ⇒ Object
readonly
Returns the value of attribute message_ids.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(string) ⇒ MessageIdsElement
constructor
A new instance of MessageIdsElement.
- #message_id ⇒ Object
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_ids ⇒ Object (readonly)
Returns the value of attribute message_ids.
12 13 14 |
# File 'lib/mail/elements/message_ids_element.rb', line 12 def @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_id ⇒ Object
18 19 20 |
# File 'lib/mail/elements/message_ids_element.rb', line 18 def .first end |