Class: TMail::Attachment

Inherits:
StringIO
  • Object
show all
Defined in:
lib/tmail/quoting.rb,
lib/tmail/attachments.rb

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeObject

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