Class: Uploadcare::Client::Conversion::VideoConversionClient
- Inherits:
-
BaseConversionClient
- Object
- ApiStruct::Client
- RestClient
- BaseConversionClient
- Uploadcare::Client::Conversion::VideoConversionClient
- 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
- #convert_many(params, options = {}, url_builder_class = Param::Conversion::Video::ProcessingJobUrlBuilder) ⇒ 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(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, = {}, url_builder_class = Param::Conversion::Video::ProcessingJobUrlBuilder ) video_params = params.is_a?(Hash) ? [params] : params send_convert_request(video_params, , 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 |