Class: SocksHandler::DirectAccessRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/socks_handler/direct_access_rule.rb

Instance Attribute Summary

Attributes inherited from Rule

#host, #host_patterns, #password, #port, #username

Instance Method Summary collapse

Methods inherited from Rule

#match?, new

Constructor Details

#initialize(host_patterns:) ⇒ DirectAccessRule

Returns a new instance of DirectAccessRule.

Parameters:

  • host_patterns (Array<String, Regexp>)


7
8
9
# File 'lib/socks_handler/direct_access_rule.rb', line 7

def initialize(host_patterns:)
  super(host_patterns: host_patterns)
end

Instance Method Details

#directtrue

Returns:

  • (true)


12
13
14
# File 'lib/socks_handler/direct_access_rule.rb', line 12

def direct
  true
end