query=(v)
Instance Public methods
Args
v
String
Description
public setter for the query component v. (with validation)
see also URI::Generic.check_query
Usage
require 'uri'
uri = URI.parse("http://my.example.com/?id=25")
uri.query = "id=1"
# => "id=1"
uri
#=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com/?id=1>