Method: Ethon::Easy::Queryable#to_s
- Defined in:
- lib/ethon/easy/queryable.rb
#to_s ⇒ String
Return the string representation of params.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/ethon/easy/queryable.rb', line 30 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 |