Class: Mail::CcField

Inherits:
StructuredField show all
Includes:
CommonAddress
Defined in:
lib/mail/fields/cc_field.rb

Constant Summary collapse

FIELD_NAME =
'cc'
CAPITALIZED_FIELD =
'Cc'

Instance Method Summary collapse

Methods included from CommonAddress

included

Methods inherited from StructuredField

#default

Methods included from Utilities

included

Methods included from CommonField

included

Constructor Details

#initialize(*args) ⇒ CcField

Returns a new instance of CcField.



37
38
39
40
41
# File 'lib/mail/fields/cc_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/cc_field.rb', line 47

def decoded
  do_decode
end

#encodedObject



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

def encoded
  do_encode(CAPITALIZED_FIELD)
end