Module: LinkedinV2::Helpers::Url
- Defined in:
- lib/linkedin_v2/helpers/url.rb
Class Method Summary collapse
-
.escape(**params) ⇒ Object
Escapes parameters hash on first level.
Class Method Details
.escape(**params) ⇒ Object
Escapes parameters hash on first level
6 7 8 9 10 11 |
# File 'lib/linkedin_v2/helpers/url.rb', line 6 def escape(**params) params.inject({}) do |hash, (key, value)| hash[key] = CGI::escape(value.to_s) hash end end |