Class: Mail::CommonMessageIdField
- Inherits:
-
NamedStructuredField
- Object
- CommonField
- StructuredField
- NamedStructuredField
- Mail::CommonMessageIdField
- Defined in:
- lib/mail/fields/common_message_id_field.rb
Overview
:nodoc:
Direct Known Subclasses
InReplyToField, MessageIdField, ReferencesField, ResentMessageIdField
Instance Attribute Summary
Attributes inherited from CommonField
#charset, #errors, #name, #value
Instance Method Summary collapse
Methods inherited from NamedStructuredField
Methods inherited from CommonField
#decoded, #encoded, #initialize, parse, #parse, #responsible_for?, #singular?, singular?
Constructor Details
This class inherits a constructor from Mail::NamedStructuredField
Instance Method Details
#default ⇒ Object
19 20 21 22 |
# File 'lib/mail/fields/common_message_id_field.rb', line 19 def default ids = ids.one? ? ids.first : ids end |
#element ⇒ Object
7 8 9 |
# File 'lib/mail/fields/common_message_id_field.rb', line 7 def element @element ||= Mail::MessageIdsElement.new(value) end |
#message_id ⇒ Object
11 12 13 |
# File 'lib/mail/fields/common_message_id_field.rb', line 11 def element. end |
#message_ids ⇒ Object
15 16 17 |
# File 'lib/mail/fields/common_message_id_field.rb', line 15 def element. end |
#to_s ⇒ Object
24 25 26 |
# File 'lib/mail/fields/common_message_id_field.rb', line 24 def to_s decoded.to_s end |