Class: Uploadcare::Param::Conversion::Video::ProcessingJobUrlBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/uploadcare/param/conversion/video/processing_job_url_builder.rb

Class Method Summary collapse

Class Method Details

.call(uuid:, size: {}, quality: nil, format: nil, cut: {}, thumbs: {}) ⇒ Object

rubocop:disable Metrics/ParameterLists



10
11
12
13
14
15
16
17
18
19
# File 'lib/uploadcare/param/conversion/video/processing_job_url_builder.rb', line 10

def call(uuid:, size: {}, quality: nil, format: nil, cut: {}, thumbs: {})
  [
    uuid_part(uuid),
    size_part(size),
    quality_part(quality),
    format_part(format),
    cut_part(cut),
    thumbs_part(thumbs)
  ].compact.join('-')
end