Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/google_directions.rb
Instance Method Summary collapse
Instance Method Details
#to_query ⇒ Object
102 103 104 105 106 107 108 109 110 111 |
# File 'lib/google_directions.rb', line 102 def to_query params = '' each do |k, v| params << "#{k}=#{v}&" end params.chop! # trailing & params end |