Class: Mail::ResentMessageIdField
- Inherits:
-
StructuredField
- Object
- StructuredField
- Mail::ResentMessageIdField
- Includes:
- CommonMessageId
- Defined in:
- lib/mail/fields/resent_message_id_field.rb
Constant Summary collapse
- FIELD_NAME =
'resent-message-id'
- CAPITALIZED_FIELD =
'Resent-Message-ID'
Instance Method Summary collapse
- #decoded ⇒ Object
- #encoded ⇒ Object
-
#initialize(*args) ⇒ ResentMessageIdField
constructor
A new instance of ResentMessageIdField.
- #name ⇒ Object
Methods included from CommonMessageId
Methods inherited from StructuredField
Methods included from Utilities
Methods included from CommonField
Constructor Details
#initialize(*args) ⇒ ResentMessageIdField
Returns a new instance of ResentMessageIdField.
12 13 14 15 16 17 |
# File 'lib/mail/fields/resent_message_id_field.rb', line 12 def initialize(*args) super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last)) self.parse self end |
Instance Method Details
#decoded ⇒ Object
27 28 29 |
# File 'lib/mail/fields/resent_message_id_field.rb', line 27 def decoded do_decode end |
#encoded ⇒ Object
23 24 25 |
# File 'lib/mail/fields/resent_message_id_field.rb', line 23 def encoded do_encode(CAPITALIZED_FIELD) end |
#name ⇒ Object
19 20 21 |
# File 'lib/mail/fields/resent_message_id_field.rb', line 19 def name 'Resent-Message-ID' end |