class Spidr::Proxy
@since 0.6.0
Constants
- DEFAULT_PORT
Default port to use.
Public Class Methods
new(host: nil, port: DEFAULT_PORT, user: nil, password: nil)
click to toggle source
Initializes the proxy.
@param [String] host
The host the proxy is running on.
@param [Integer] port
The port the proxy is running on.
@param [String] user
The user to authenticate as with the proxy.
@param [String] password
The password to authenticate with.
Calls superclass method
# File lib/spidr/proxy.rb, line 27 def initialize(host: nil, port: DEFAULT_PORT, user: nil, password: nil) super(host,port,user,password) end
Public Instance Methods
disabled?()
click to toggle source
Determines if the proxy is not set.
@return [Boolean]
# File lib/spidr/proxy.rb, line 45 def disabled? host.nil? end
enabled?()
click to toggle source
Determines if the proxy settings are set.
@return [Boolean]
# File lib/spidr/proxy.rb, line 36 def enabled? !host.nil? end