Class: Solon::PostData
- Inherits:
-
Hash
- Object
- Hash
- Solon::PostData
- Defined in:
- lib/solon/post_data.rb
Instance Method Summary collapse
- #to_post_data ⇒ Object (also: #to_s)
Instance Method Details
#to_post_data ⇒ Object Also known as: to_s
5 6 7 |
# File 'lib/solon/post_data.rb', line 5 def to_post_data collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join("&") end |