Class: AddressFinder::Util
- Inherits:
-
Object
- Object
- AddressFinder::Util
- Defined in:
- lib/addressfinder/util.rb
Class Method Summary collapse
Class Method Details
.encode(v) ⇒ Object
4 5 6 |
# File 'lib/addressfinder/util.rb', line 4 def self.encode(v) CGI::escape(v.to_s) end |
.encode_and_join_params(params) ⇒ Object
8 9 10 |
# File 'lib/addressfinder/util.rb', line 8 def self.encode_and_join_params(params) params.map{ |k,v| "#{k}=#{encode(v)}" }.join('&') end |