Class: Mail::ContentTransferEncodingElement
- Inherits:
-
Object
- Object
- Mail::ContentTransferEncodingElement
- Defined in:
- lib/mail/elements/content_transfer_encoding_element.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
Instance Method Summary collapse
-
#initialize(string) ⇒ ContentTransferEncodingElement
constructor
A new instance of ContentTransferEncodingElement.
Constructor Details
#initialize(string) ⇒ ContentTransferEncodingElement
Returns a new instance of ContentTransferEncodingElement.
9 10 11 |
# File 'lib/mail/elements/content_transfer_encoding_element.rb', line 9 def initialize(string) @encoding = Mail::Parsers::ContentTransferEncodingParser.parse(string).encoding end |
Instance Attribute Details
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
7 8 9 |
# File 'lib/mail/elements/content_transfer_encoding_element.rb', line 7 def encoding @encoding end |