Class: Mail::ResentMessageIdField

Inherits:
StructuredField show all
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

Methods included from CommonMessageId

included

Methods inherited from StructuredField

#default

Methods included from Utilities

included

Methods included from CommonField

included

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

#decodedObject



27
28
29
# File 'lib/mail/fields/resent_message_id_field.rb', line 27

def decoded
  do_decode
end

#encodedObject



23
24
25
# File 'lib/mail/fields/resent_message_id_field.rb', line 23

def encoded
  do_encode(CAPITALIZED_FIELD)
end

#nameObject



19
20
21
# File 'lib/mail/fields/resent_message_id_field.rb', line 19

def name
  'Resent-Message-ID'
end