class Hash

Mixin for ruby’s Hash class

@author Scott Sampson @author Michael Orr

Public Instance Methods

to_query() click to toggle source

returns a query string

@return [String] concated string of key value pairs in the hash

@author Scott Sampson

# File lib/rgigya/hash.rb, line 16
def to_query
  self.map{|k,v| "#{CGI.escape(k.to_s)}=#{CGI.escape(v)}"}.join("&")
end