Class: Mail::MessageIdField
- Inherits:
-
StructuredField
- Object
- StructuredField
- Mail::MessageIdField
- Includes:
- CommonMessageId
- Defined in:
- lib/mail/fields/message_id_field.rb
Constant Summary collapse
- FIELD_NAME =
'message-id'
- CAPITALIZED_FIELD =
'Message-ID'
Instance Method Summary collapse
- #decoded ⇒ Object
- #encoded ⇒ Object
-
#initialize(*args) ⇒ MessageIdField
constructor
A new instance of MessageIdField.
- #message_ids ⇒ Object
- #name ⇒ Object
- #to_s ⇒ Object
Methods included from CommonMessageId
Methods inherited from StructuredField
Methods included from Utilities
Methods included from CommonField
Constructor Details
#initialize(*args) ⇒ MessageIdField
Returns a new instance of MessageIdField.
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/mail/fields/message_id_field.rb', line 39 def initialize(*args) @uniq = 1 if args.last.blank? self.name = CAPITALIZED_FIELD self.value = else super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last)) end self.parse self end |
Instance Method Details
#decoded ⇒ Object
68 69 70 |
# File 'lib/mail/fields/message_id_field.rb', line 68 def decoded do_decode end |
#encoded ⇒ Object
64 65 66 |
# File 'lib/mail/fields/message_id_field.rb', line 64 def encoded do_encode(CAPITALIZED_FIELD) end |
#message_ids ⇒ Object
56 57 58 |
# File 'lib/mail/fields/message_id_field.rb', line 56 def [] end |
#name ⇒ Object
52 53 54 |
# File 'lib/mail/fields/message_id_field.rb', line 52 def name 'Message-ID' end |
#to_s ⇒ Object
60 61 62 |
# File 'lib/mail/fields/message_id_field.rb', line 60 def to_s "<#{}>" end |