Sha256: 2199c46c6eb131f9c9c6dc91b78d2f198d30ee57a98ec88a0224e09f22d2e4f8

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

module EmlToPdfExt
  class Converter
    def initialize(input_path, output_path)
      @input_path = input_path
      @output_path = output_path
    end

    def convert
      email = Email.new(@input_path)
      html = email.to_html
      Wkhtmltopdf.convert(html, @output_path)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eml_to_pdf_ext-0.6.1 lib/eml_to_pdf_ext/converter.rb
eml_to_pdf_ext-0.6.0 lib/eml_to_pdf_ext/converter.rb