Module: Paypal::Formatters

Included in:
Api::Sequential, Request
Defined in:
lib/paypal_api/apis/api.rb

Instance Method Summary collapse

Instance Method Details

#escape_uri_component(string) ⇒ Object



3
4
5
6
# File 'lib/paypal_api/apis/api.rb', line 3

def escape_uri_component(string)
	string = string.to_s
	return URI.escape(string, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
end