Module: Gerry::Client::Request
- Included in:
- Gerry::Client
- Defined in:
- lib/gerry/client/request.rb
Defined Under Namespace
Classes: RequestError
Instance Method Summary collapse
-
#map_options(options) ⇒ String
Get the mapped options.
Instance Method Details
#map_options(options) ⇒ String
Get the mapped options.
8 9 10 11 12 13 14 |
# File 'lib/gerry/client/request.rb', line 8 def () if .is_a?(Array) .map { |v| "#{v}" }.join('&') elsif .is_a?(Hash) .map { |k,v| "#{k}=#{v.join(',')}" }.join('&') end end |