Class: ZhimaAuth::WebUtil
- Inherits:
-
Object
- Object
- ZhimaAuth::WebUtil
- Defined in:
- lib/zhima_auth/web_util.rb
Class Method Summary collapse
Class Method Details
.to_query(hash) ⇒ Object
5 6 7 |
# File 'lib/zhima_auth/web_util.rb', line 5 def to_query hash hash.map{ |k, v| [k, URI.encode_www_form_component(v)].join("=") }.join("&") end |