Sha256: e8eed82e0acf9f44861a5e599019347a5aa681f5b9d52e9ae10b5b6352f7bd03

Contents?: true

Size: 295 Bytes

Versions: 14

Compression:

Stored size: 295 Bytes

Contents

module EmlToPdf
  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

14 entries across 14 versions & 2 rubygems

Version Path
eml_to_pdf-0.5.0 lib/eml_to_pdf/converter.rb
eml_to_pdf-0.4.1 lib/eml_to_pdf/converter.rb
eml_to_pdf_ext-0.5.8 lib/eml_to_pdf/converter.rb
eml_to_pdf_ext-0.5.7 lib/eml_to_pdf/converter.rb
eml_to_pdf_ext-0.5.6 lib/eml_to_pdf/converter.rb
eml_to_pdf_ext-0.5.5 lib/eml_to_pdf/converter.rb
eml_to_pdf_ext-0.5.4 lib/eml_to_pdf/converter.rb
eml_to_pdf_ext-0.5.3 lib/eml_to_pdf/converter.rb
eml_to_pdf_ext-0.5.2 lib/eml_to_pdf/converter.rb
eml_to_pdf-0.4.0 lib/eml_to_pdf/converter.rb
eml_to_pdf-0.3.1 lib/eml_to_pdf/converter.rb
eml_to_pdf-0.3.0 lib/eml_to_pdf/converter.rb
eml_to_pdf-0.2.0 lib/eml_to_pdf/converter.rb
eml_to_pdf-0.1.0 lib/eml_to_pdf/converter.rb