Module: TransformUtils
- Included in:
- Transform
- Defined in:
- lib/filestack/utils/utils.rb
Overview
Utility functions for transformations
Instance Method Summary collapse
-
#add_transform_task(transform, options = {}) ⇒ String
Creates a transformation task to be sent back to transform object.
Instance Method Details
#add_transform_task(transform, options = {}) ⇒ String
Creates a transformation task to be sent back to transform object
136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/filestack/utils/utils.rb', line 136 def add_transform_task(transform, = {}) = [] if !.empty? .each do |key, array| .push("#{key}:#{array}") end = .join(',') "#{transform}=#{}" else transform.to_s end end |