Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/http_requestor.rb

Instance Method Summary collapse

Instance Method Details

#to_query(key) ⇒ Object



173
174
175
176
# File 'lib/http_requestor.rb', line 173

def to_query(key)
  prefix = "#{key}[]"
  collect { |value| value.to_query(prefix) }.join '&'
end