Sha256: 76d08071d8bba59757801ce040b6f5821afc7b576a6d9e3ea2e7e33e3edaed56
Contents?: true
Size: 292 Bytes
Versions: 72
Compression:
Stored size: 292 Bytes
Contents
module Twilio module Util def url_encode(hash) hash.to_a.map {|p| p.map {|e| CGI.escape get_string(e)}.join '='}.join '&' end def get_string(obj) if obj.respond_to?(:strftime) obj.strftime('%Y-%m-%d') else obj.to_s end end end end
Version data entries
72 entries across 72 versions & 1 rubygems