class GrabzIt::Proxy

This class represents the local proxy @version 3.2 @author GrabzIt

Public Class Methods

new(host = nil, port = nil, username = nil, password = nil) click to toggle source

@!visibility private

# File lib/grabzit/proxy.rb, line 9
def initialize(host = nil, port = nil, username = nil, password = nil)
        @Host = host
        @Port = port
        @Username = username
        @Password = password
end

Public Instance Methods

host() click to toggle source

@return [String] returns the host of the proxy

# File lib/grabzit/proxy.rb, line 16
def host
        @Host
end
password() click to toggle source

@return [String] [String] returns the password of the proxy

# File lib/grabzit/proxy.rb, line 31
def password
        if @Password == nil
                return @Password
        end
        return CGI.unescape(@Password)                                       
end
port() click to toggle source

@return [String] returns the port of the proxy

# File lib/grabzit/proxy.rb, line 20
def port
        @Port
end
username() click to toggle source

@return [String] returns the username of the proxy

# File lib/grabzit/proxy.rb, line 24
def username
        if @Username == nil
                return @Username
        end
        return CGI.unescape(@Username)
end