Sha256: cf5c5d78721d8fe97f875bd9ef0e729503b5680bd18ea4bc98907246a2a06e9a
Contents?: true
Size: 570 Bytes
Versions: 4
Compression:
Stored size: 570 Bytes
Contents
require 'uri' require 'aws-sdk-resources' module URI def self.seahorse_encode_www_form(params) params.map {|key, value| encoded_key = encode_www_form_component(key) if value.nil? encoded_key elsif value.respond_to?(:to_ary) value.to_ary.map {|v| if v.nil? # bug? #encoded_key else encoded_key + '=' + Seahorse::Util.uri_escape(v) end }.join('&') else encoded_key + '=' + Seahorse::Util.uri_escape(value) end }.join('&') end end
Version data entries
4 entries across 4 versions & 1 rubygems