Method: Selenium::WebDriver::Proxy.json_create
- Defined in:
- lib/selenium/webdriver/common/proxy.rb
permalink .json_create(data) ⇒ Object
[View source]
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/selenium/webdriver/common/proxy.rb', line 45 def self.json_create(data) data['proxyType'] = data['proxyType'].downcase.to_sym return if data['proxyType'] == :unspecified proxy = new ALLOWED.each do |k, v| proxy.send(:"#{k}=", data[v]) if data.key?(v) end proxy end |