Method: EasyPost::Util.url_encode

Defined in:
lib/easypost/util.rb

.url_encode(key) ⇒ Object



105
106
107
# File 'lib/easypost/util.rb', line 105

def self.url_encode(key)
  URI.escape(key.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
end