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
20 21 22 23 |
# File 'lib/mail/fields/common_message_id_field.rb', line 20 def default ids = ids.one? ? ids.first : ids end |
#element ⇒ Object
8 9 10 |
# File 'lib/mail/fields/common_message_id_field.rb', line 8 def element @element ||= Mail::MessageIdsElement.new(value) end |
#message_id ⇒ Object
12 13 14 |
# File 'lib/mail/fields/common_message_id_field.rb', line 12 def element. end |
#message_ids ⇒ Object
16 17 18 |
# File 'lib/mail/fields/common_message_id_field.rb', line 16 def element. end |
#to_s ⇒ Object
25 26 27 |
# File 'lib/mail/fields/common_message_id_field.rb', line 25 def to_s decoded.to_s end |