Class: Uploadcare::Rails::Api::Rest::ConversionApi

Inherits:
Base
  • Object
show all
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

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, options = {})
  Uploadcare::DocumentConverter.convert(document_params, options)
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, options = {})
  Uploadcare::VideoConverter.convert(video_params, options)
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