module TransformUtils
Utility functions for transformations
Public Instance Methods
add_transform_task(transform, options = {})
click to toggle source
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]
# File lib/filestack/utils/utils.rb, line 146 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