Class: GrabzIt::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/grabzit/proxy.rb

Overview

This class represents the local proxy

Author:

  • GrabzIt

Version:

  • 3.2

Instance Method Summary collapse

Instance Method Details

#hostString

Returns the host of the proxy

Returns:

  • (String)

    returns the host of the proxy



16
17
18
# File 'lib/grabzit/proxy.rb', line 16

def host
	@Host
end

#passwordString

Returns [String] returns the password of the proxy.

Returns:

  • (String)
    String

    returns the password of the proxy



31
32
33
34
35
36
# File 'lib/grabzit/proxy.rb', line 31

def password
	if @Password == nil
		return @Password
	end
	return CGI.unescape(@Password)					
end

#portString

Returns the port of the proxy

Returns:

  • (String)

    returns the port of the proxy



20
21
22
# File 'lib/grabzit/proxy.rb', line 20

def port
	@Port
end

#usernameString

Returns the username of the proxy

Returns:

  • (String)

    returns the username of the proxy



24
25
26
27
28
29
# File 'lib/grabzit/proxy.rb', line 24

def username
	if @Username == nil
		return @Username
	end
	return CGI.unescape(@Username)
end