Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/utils.rb

Instance Method Summary collapse

Instance Method Details

#to_queryObject



2
3
4
# File 'lib/utils.rb', line 2

def to_query
  map{|k,v| "#{::CGI.escape(k.to_s)}=#{::CGI.escape(v)}"}.join("&")
end