def format
      params.sort_by { |k, v| k.to_s }.inject(['']) do |array, param|
        param[1] = format_datetime(param[1]) if param[1].respond_to?(:strftime)
        key, value = param.map { |p| ERB::Util.url_encode(p) }
        array << "#{key.dasherize}=#{value}"
      end.join('&')
    end
def format
      params.sort_by { |k, v| k.to_s }.inject(['']) do |array, param|
        param[1] = format_datetime(param[1]) if param[1].respond_to?(:strftime)
        key, value = param.map { |p| ERB::Util.url_encode(p) }
        array << "#{key.dasherize}=#{value}"
      end.join('&')
    end
Public: Create a new AdobeConnect::ParamFormatter.

 params - A hash of params to format.
 Public: Translate a hash of params into a query string. Dasherize any
 underscored values, and escape URL unfriendly values.

 Returns a query string.