Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/rgigya/hash.rb
Overview
Mixin for ruby’s Hash class
Instance Method Summary collapse
-
#to_query ⇒ String
returns a query string.
Instance Method Details
#to_query ⇒ String
returns a query string
16 17 18 |
# File 'lib/rgigya/hash.rb', line 16 def to_query self.map{|k,v| "#{CGI.escape(k.to_s)}=#{CGI.escape(v)}"}.join("&") end |