Module: Quby::PdfRenderer
- Defined in:
- lib/quby/pdf_renderer.rb
Defined Under Namespace
Classes: EmptyResponse
Class Method Summary collapse
Class Method Details
.render_pdf(html_str) ⇒ Object
7 8 9 10 11 |
# File 'lib/quby/pdf_renderer.rb', line 7 def self.render_pdf(html_str) RestClient.post(ENV['HTML_TO_PDF_URL'], html_str).body.tap do |response| raise EmptyResponse if response.empty? end end |