Class: Uploadcare::Client::Conversion::DocumentConversionClient
- Inherits:
-
BaseConversionClient
- Object
- ApiStruct::Client
- RestClient
- BaseConversionClient
- Uploadcare::Client::Conversion::DocumentConversionClient
- 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
- #convert_many(arr, options = {}, url_builder_class = Param::Conversion::Document::ProcessingJobUrlBuilder) ⇒ Object
- #document_info(uuid) ⇒ Object
- #get_conversion_status(token) ⇒ Object
Methods inherited from BaseConversionClient
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
Methods included from Uploadcare::Concerns::ErrorHandler
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, = {}, url_builder_class = Param::Conversion::Document::ProcessingJobUrlBuilder ) send_convert_request(arr, , 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 |