Class: EmlToPdf::EmptyPart

Inherits:
Object
  • Object
show all
Defined in:
lib/eml_to_pdf/empty_part.rb

Instance Method Summary collapse

Instance Method Details

#attachment?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/eml_to_pdf/empty_part.rb', line 7

def attachment?
  false
end

#decodedObject



15
16
17
# File 'lib/eml_to_pdf/empty_part.rb', line 15

def decoded
  "[Cannot create a preview of the mail]"
end

#mime_typeObject



11
12
13
# File 'lib/eml_to_pdf/empty_part.rb', line 11

def mime_type
  "text/plain"
end

#multipart?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/eml_to_pdf/empty_part.rb', line 3

def multipart?
  false
end