Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/http_requestor.rb
Overview
ActiveSupport Like object#to_query methods =========================
Instance Method Summary collapse
Instance Method Details
#to_query(namespace = nil) ⇒ Object
165 166 167 168 169 |
# File 'lib/http_requestor.rb', line 165 def to_query(namespace = nil) collect do |key, value| value.to_query(namespace ? "#{namespace}[#{key}]" : key) end.sort * '&' end |