Class: Mail::InReplyToField

Inherits:
StructuredField show all
Includes:
CommonMessageId
Defined in:
lib/mail/fields/in_reply_to_field.rb

Constant Summary collapse

FIELD_NAME =
'in-reply-to'
CAPITALIZED_FIELD =
'In-Reply-To'

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) ⇒ InReplyToField

Returns a new instance of InReplyToField.



37
38
39
40
41
# File 'lib/mail/fields/in_reply_to_field.rb', line 37

def initialize(*args)
  super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last))
  self.parse
  self
end

Instance Method Details

#decodedObject



47
48
49
# File 'lib/mail/fields/in_reply_to_field.rb', line 47

def decoded
  do_decode
end

#encodedObject



43
44
45
# File 'lib/mail/fields/in_reply_to_field.rb', line 43

def encoded
  do_encode(CAPITALIZED_FIELD)
end