Sha256: 9480f96bbbd7bc98b907d7f3eae9d6ecde5ae5df717a93c1c9af39242f906fa2
Contents?: true
Size: 319 Bytes
Versions: 33
Compression:
Stored size: 319 Bytes
Contents
require 'resourceful/abstract_form_data' require 'cgi' module Resourceful class UrlencodedFormData < AbstractFormData def content_type "application/x-www-form-urlencoded" end def read @form_data.map do |k,v| CGI.escape(k) + '=' + CGI.escape(v) end.join('&') end end end
Version data entries
33 entries across 33 versions & 4 rubygems