Class: Uploadcare::Rails::Api::Rest::ConversionApi
- Defined in:
- lib/uploadcare/rails/api/rest/conversion_api.rb
Overview
A class that contains Conversion related methods for Uploadcare REST API
Class Method Summary collapse
-
.convert_document(document_params, options = {}) ⇒ Object
Converts documents.
-
.convert_video(video_params, options = {}) ⇒ Object
Converts video files.
-
.get_document_conversion_formats_info(uuid) ⇒ Object
Conversion formats info.
-
.get_document_conversion_status(token) ⇒ Object
Returns a status of video conversion job.
-
.get_video_conversion_status(token) ⇒ Object
Returns a status of video conversion job.
Class Method Details
.convert_document(document_params, options = {}) ⇒ Object
Converts documents
32 33 34 |
# File 'lib/uploadcare/rails/api/rest/conversion_api.rb', line 32 def convert_document(document_params, = {}) Uploadcare::DocumentConverter.convert(document_params, ) end |
.convert_video(video_params, options = {}) ⇒ Object
Converts video files
14 15 16 |
# File 'lib/uploadcare/rails/api/rest/conversion_api.rb', line 14 def convert_video(video_params, = {}) Uploadcare::VideoConverter.convert(video_params, ) end |
.get_document_conversion_formats_info(uuid) ⇒ Object
Conversion formats info
26 27 28 |
# File 'lib/uploadcare/rails/api/rest/conversion_api.rb', line 26 def get_document_conversion_formats_info(uuid) Uploadcare::DocumentConverter.info(uuid) end |
.get_document_conversion_status(token) ⇒ Object
Returns a status of video conversion job
38 39 40 |
# File 'lib/uploadcare/rails/api/rest/conversion_api.rb', line 38 def get_document_conversion_status(token) Uploadcare::DocumentConverter.status(token) end |
.get_video_conversion_status(token) ⇒ Object
Returns a status of video conversion job
20 21 22 |
# File 'lib/uploadcare/rails/api/rest/conversion_api.rb', line 20 def get_video_conversion_status(token) Uploadcare::VideoConverter.status(token) end |