Class: Solon::PostData

Inherits:
Hash
  • Object
show all
Defined in:
lib/solon/post_data.rb

Instance Method Summary collapse

Instance Method Details

#to_post_dataObject 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