route_from

route_from(oth) Instance Public methods Args oth URI or String Description Calculates relative path from oth to self Usage require 'uri' uri = URI.parse('http://my.example.com/main.rbx?page=1') p uri.route_from('http://my.example.com') #=> #<URI::Generic:0x20218858 URL:/main.rbx?page=1> -

relative?

relative?() Instance Public methods Checks if URI is relative

registry=

registry=(v) Instance Public methods Args v String Description public setter for the registry component v. (with validation) see also URI::Generic.check_registry

query=

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>

port=

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

path=

path=(v) Instance Public methods Args v String Description public setter for the path component v. (with validation) see also URI::Generic.check_path Usage require 'uri' uri = URI.parse("http://my.example.com/pub/files") uri.path = "/faq/" # => "/faq/" uri #=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com/faq/>

password=

password=(password) Instance Public methods Args v String Description public setter for the password component. (with validation) see also URI::Generic.check_password Usage require 'uri' uri = URI.parse("http://john:S3nsit1ve@my.example.com") uri.password = "V3ry_S3nsit1ve" # => "V3ry_S3nsit1ve" uri #=> #<URI::HTTP:0x00000000881d90 URL:http://john:V3ry_S3nsit1ve@my.example.com>

password

password() Instance Public methods returns the password component

parser

parser() Instance Public methods returns the parser to be used. Unless a URI::Parser is defined, then DEFAULT_PARSER is used.

opaque=

opaque=(v) Instance Public methods Args v String Description public setter for the opaque component v. (with validation) see also URI::Generic.check_opaque