Class: Mail::ResentSenderField
- Inherits:
-
StructuredField
- Object
- StructuredField
- Mail::ResentSenderField
- Includes:
- CommonAddress
- Defined in:
- lib/mail/fields/resent_sender_field.rb
Constant Summary collapse
- FIELD_NAME =
'resent-sender'
- CAPITALIZED_FIELD =
'Resent-Sender'
Instance Method Summary collapse
- #address ⇒ Object
- #addresses ⇒ Object
- #decoded ⇒ Object
- #encoded ⇒ Object
-
#initialize(*args) ⇒ ResentSenderField
constructor
A new instance of ResentSenderField.
Methods included from CommonAddress
Methods inherited from StructuredField
Methods included from Utilities
Methods included from CommonField
Constructor Details
#initialize(*args) ⇒ ResentSenderField
Returns a new instance of ResentSenderField.
36 37 38 39 40 41 |
# File 'lib/mail/fields/resent_sender_field.rb', line 36 def initialize(*args) super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last)) self.parse self end |
Instance Method Details
#address ⇒ Object
47 48 49 |
# File 'lib/mail/fields/resent_sender_field.rb', line 47 def address result = tree.addresses.first end |
#addresses ⇒ Object
43 44 45 |
# File 'lib/mail/fields/resent_sender_field.rb', line 43 def addresses [address.address] end |
#decoded ⇒ Object
55 56 57 |
# File 'lib/mail/fields/resent_sender_field.rb', line 55 def decoded do_decode end |
#encoded ⇒ Object
51 52 53 |
# File 'lib/mail/fields/resent_sender_field.rb', line 51 def encoded do_encode(CAPITALIZED_FIELD) end |