module Cloudimage::CustomHelpers
Public Instance Methods
positionable_crop(origin_x:, origin_y:, width:, height:)
click to toggle source
# File lib/cloudimage/custom_helpers.rb, line 5 def positionable_crop(origin_x:, origin_y:, width:, height:) tl_px(origin_x, origin_y).br_px(origin_x + width, origin_y + height) end
seal_params(*query_params)
click to toggle source
# File lib/cloudimage/custom_helpers.rb, line 9 def seal_params(*query_params) # URI#query_values returns hash where keys are strings. sealed_params.merge(query_params.map(&:to_s)) self end