Class: Uploadcare::Client::Conversion::VideoConversionClient

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

Overview

This is client for video 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(params, options = {}, url_builder_class = Param::Conversion::Video::ProcessingJobUrlBuilder) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/uploadcare/client/conversion/video_conversion_client.rb', line 14

def convert_many(
  params,
  options = {},
  url_builder_class = Param::Conversion::Video::ProcessingJobUrlBuilder
)
  video_params = params.is_a?(Hash) ? [params] : params
  send_convert_request(video_params, options, url_builder_class)
end

#get_conversion_status(token) ⇒ Object



23
24
25
# File 'lib/uploadcare/client/conversion/video_conversion_client.rb', line 23

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