Class: Uploadcare::Client::Conversion::DocumentConversionClient

Inherits:
BaseConversionClient show all
Defined in:
lib/uploadcare/client/conversion/document_conversion_client.rb

Overview

This is client for document conversion

Constant Summary

Constants inherited from BaseConversionClient

BaseConversionClient::API_VERSION_HEADER_VALUE

Instance Method Summary collapse

Methods inherited from BaseConversionClient

#headers

Methods inherited from RestClient

#api_root, #api_struct_delete, #api_struct_get, #api_struct_post, #api_struct_put, #delete, #get, #headers, #post, #put, #request

Methods included from Uploadcare::Concerns::ThrottleHandler

#handle_throttling

Methods included from Uploadcare::Concerns::ErrorHandler

#failure, #wrap

Instance Method Details

#convert_many(arr, options = {}, url_builder_class = Param::Conversion::Document::ProcessingJobUrlBuilder) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/uploadcare/client/conversion/document_conversion_client.rb', line 13

def convert_many(
  arr,
  options = {},
  url_builder_class = Param::Conversion::Document::ProcessingJobUrlBuilder
)
  send_convert_request(arr, options, url_builder_class)
end

#document_info(uuid) ⇒ Object



25
26
27
# File 'lib/uploadcare/client/conversion/document_conversion_client.rb', line 25

def document_info(uuid)
  get(uri: "/convert/document/#{uuid}/")
end

#get_conversion_status(token) ⇒ Object



21
22
23
# File 'lib/uploadcare/client/conversion/document_conversion_client.rb', line 21

def get_conversion_status(token)
  get(uri: "/convert/document/status/#{token}/")
end