Method: SimpleQS::Request::Base#params_to_query

Defined in:
lib/simple_qs/request/base.rb

#params_to_query(params) ⇒ Object



86
87
88
# File 'lib/simple_qs/request/base.rb', line 86

def params_to_query(params)
  params.map {|pair| pair.map {|value| URI.escape(value.to_s, RESERVED_CHARACTERS)}.join('=')}.join('&')
end