Class: TMail::Attachment
- Defined in:
- lib/tmail/quoting.rb,
lib/tmail/attachments.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#original_filename(to_charset = 'utf-8') ⇒ Object
(also: #quoted_filename)
Returns the value of attribute original_filename.
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
11 12 13 |
# File 'lib/tmail/attachments.rb', line 11 def content_type @content_type end |
#original_filename(to_charset = 'utf-8') ⇒ Object Also known as: quoted_filename
Returns the value of attribute original_filename.
60 61 62 |
# File 'lib/tmail/quoting.rb', line 60 def original_filename(to_charset = 'utf-8') Unquoter.unquote_and_convert_to(quoted_filename, to_charset) end |