Class: PdfServices::HtmlToPdf::Operation

Inherits:
InternalExternalOperation::Operation show all
Defined in:
lib/pdfservices/operations/html_to_pdf.rb

Direct Known Subclasses

External, Internal

Constant Summary collapse

OPERATION_ENDPOINT =
"#{BASE_ENDPOINT}htmltopdf".freeze

Constants inherited from Base::Operation

Base::Operation::ASSETS_ENDPOINT, Base::Operation::BASE_ENDPOINT, Base::Operation::STATUS

Instance Method Summary collapse

Methods inherited from InternalExternalOperation::Operation

#execute

Methods inherited from Base::Operation

#handle_response, #initialize, #poll_document_result, #upload_asset

Constructor Details

This class inherits a constructor from PdfServices::Base::Operation

Instance Method Details

#external_classObject



16
17
18
# File 'lib/pdfservices/operations/html_to_pdf.rb', line 16

def external_class
  External
end

#internal_classObject



12
13
14
# File 'lib/pdfservices/operations/html_to_pdf.rb', line 12

def internal_class
  Internal
end

#request_headersObject



8
9
10
# File 'lib/pdfservices/operations/html_to_pdf.rb', line 8

def request_headers
  { 'Content-Type' => 'application/json' }
end