Class: Mail::ContentTransferEncodingElement

Inherits:
Object
  • Object
show all
Defined in:
lib/mail/elements/content_transfer_encoding_element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#encodingObject (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