Class: PdfRenderingSrv::FromHtml

Inherits:
Base
  • Object
show all
Defined in:
lib/pdf_rendering_srv/from_html.rb

Instance Method Summary collapse

Methods inherited from Base

call, #params

Instance Method Details

#responseObject



9
10
11
12
# File 'lib/pdf_rendering_srv/from_html.rb', line 9

def response
  @response ||= HTTP.headers("content-type" => "text/html")
                    .post(pdf_rendering_srv_url, body: html, json: params)
end