Sha256: 12abcaf99580548145249ec91582feb990379e5121fca14da8bcebe19306a344
Contents?: true
Size: 275 Bytes
Versions: 1
Compression:
Stored size: 275 Bytes
Contents
require "cgi" module Rapa class Encoder # @param parameters [Hash] # @return [String] def encode(parameters) parameters.map do |key, value| [ key, ::CGI.escape(value), ].join("=") end.join("&") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapa-0.3.0 | lib/rapa/encoder.rb |