Class: SocksHandler::ProxyAccessRule
- Defined in:
- lib/socks_handler/proxy_access_rule.rb
Instance Attribute Summary
Attributes inherited from Rule
#host, #host_patterns, #password, #port, #username
Instance Method Summary collapse
- #direct ⇒ false
-
#initialize(host_patterns:, socks_server:, username: nil, password: nil) ⇒ ProxyAccessRule
constructor
A new instance of ProxyAccessRule.
Methods inherited from Rule
Constructor Details
#initialize(host_patterns:, socks_server:, username: nil, password: nil) ⇒ ProxyAccessRule
Returns a new instance of ProxyAccessRule.
10 11 12 13 |
# File 'lib/socks_handler/proxy_access_rule.rb', line 10 def initialize(host_patterns:, socks_server:, username: nil, password: nil) host, port = socks_server.split(":") super(host_patterns: host_patterns, host: host, port: port.to_i, username: username, password: password) end |
Instance Method Details
#direct ⇒ false
16 17 18 |
# File 'lib/socks_handler/proxy_access_rule.rb', line 16 def direct false end |