Class: PdfServices::InternalExternalOperation::Operation

Inherits:
Base::Operation show all
Defined in:
lib/pdfservices/operations/internal_external_operation.rb

Constant Summary

Constants inherited from Base::Operation

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

Instance Method Summary collapse

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

#execute(source_file_path, options = {}, &block) ⇒ Object



4
5
6
7
# File 'lib/pdfservices/operations/internal_external_operation.rb', line 4

def execute(source_file_path, options = {}, &block)
  operation_class = switch_on_type(options)
  operation_class.new(@api).execute(source_file_path, options, &block)
end