lib/filestack/utils/utils.rb
# Creates a transformation task to be sent back to transform object
#
# @param [String]   transform     The task to be added
# @param [Dict]   options         A dictionary representing the options for that task
#
# @return [String]
Creates a transformation task to be sent back to transform object
Creates a transformation task to be sent back to transform object
def add_transform_task(transform, options = {})
    options_list = []
    if !options.empty?
      options.each do |key, array|
        options_list.push("#{key}:#{array}")
      end
      options_string = options_list.join(',')
      "#{transform}=#{options_string}"
    else
      transform.to_s
    end
  end
def add_transform_task ( transform , options = { } ) options_list = [ ] if ! options . empty? options . each do | key , array | options_list . push ( "#{key}:#{array}" ) end options_string = options_list . join ( ',' ) "#{transform}=#{options_string}" else transform . to_s end end
Creates a transformation task to be sent back to transform object
Creates a transformation task to be sent back to transform object
None
String
transform
<not_specific>
options
<not_specific>
<not_specific>
options A dictionary representing the options for that task
options A dictionary representing the options for that task