module Ethon::Easy::Queryable

def to_s

Returns:
  • (String) - The string representation.

Other tags:
    Example: Return string representation. -
def to_s
  @to_s ||= query_pairs.map{ |pair|
    return pair if pair.is_a?(String)
    if escape && @easy
      pair.map{ |e| @easy.escape(e.to_s) }.join("=")
    else
      pair.join("=")
    end
  }.join('&')
end