Class: ProxyTester::CapybaraProxyPac
- Inherits:
-
Object
- Object
- ProxyTester::CapybaraProxyPac
- Defined in:
- lib/proxy_tester/capybara_proxy_pac.rb
Instance Attribute Summary collapse
-
#client_ip ⇒ Object
Returns the value of attribute client_ip.
-
#pac_file ⇒ Object
Returns the value of attribute pac_file.
-
#result ⇒ Object
writeonly
Sets the attribute result.
-
#time ⇒ Object
Returns the value of attribute time.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#client_ip ⇒ Object
Returns the value of attribute client_ip.
10 11 12 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 10 def client_ip @client_ip end |
#pac_file ⇒ Object
Returns the value of attribute pac_file.
10 11 12 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 10 def pac_file @pac_file end |
#result=(value) ⇒ Object
Sets the attribute result
10 11 12 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 10 def result=(value) @result = value end |
#time ⇒ Object
Returns the value of attribute time.
10 11 12 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 10 def time @time end |
#url ⇒ Object
Returns the value of attribute url.
10 11 12 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 10 def url @url end |
Instance Method Details
#blank? ⇒ Boolean
20 21 22 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 20 def blank? host.blank? or port.blank? end |
#direct? ⇒ Boolean
24 25 26 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 24 def direct? result.request_type == 'DIRECT' end |
#host ⇒ Object
12 13 14 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 12 def host result.proxy end |
#port ⇒ Object
16 17 18 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 16 def port result.proxy_port end |
#verbatim ⇒ Object
28 29 30 |
# File 'lib/proxy_tester/capybara_proxy_pac.rb', line 28 def verbatim result.verbatim end |