Class: Continuum::Proxy
- Inherits:
-
Object
- Object
- Continuum::Proxy
- Defined in:
- src/lib/continuum/proxy.rb
Overview
A class that encapsulates proxy configuration
Instance Attribute Summary collapse
-
#host ⇒ String
Gets the value for the ‘host’ attribute of the the ‘proxy’ object defined in continuum.json.
-
#password ⇒ String
Gets the value for the ‘password’ attribute of the the ‘proxy’ object defined in continuum.json.
-
#port ⇒ Integer
Gets the value for the ‘port’ attribute of the the ‘proxy’ object defined in continuum.json.
-
#username ⇒ String
Gets the value for the ‘username’ attribute of the the ‘proxy’ object defined in continuum.json.
Instance Method Summary collapse
-
#initialize(proxy_config) ⇒ Proxy
constructor
Creates a new Proxy instance.
Constructor Details
#initialize(proxy_config) ⇒ Proxy
Creates a new Proxy instance.
40 41 42 43 44 45 |
# File 'src/lib/continuum/proxy.rb', line 40 def initialize(proxy_config) @host = proxy_config['host'] @port = proxy_config['port'] @username = proxy_config['username'] @password = proxy_config['password'] end |
Instance Attribute Details
#host ⇒ String
Gets the value for the ‘host’ attribute of the the ‘proxy’ object defined in continuum.json. The IP address or hostname of the desired proxy to route all network traffic from Continuum through. Set to null if you don’t want to use a proxy.
13 14 15 |
# File 'src/lib/continuum/proxy.rb', line 13 def host @host end |
#password ⇒ String
Gets the value for the ‘password’ attribute of the the ‘proxy’ object defined in continuum.json. The password for the desired proxy to route all network traffic from Continuum through. Set to null if your proxy does not require a password, or if you don’t want to use a proxy.
34 35 36 |
# File 'src/lib/continuum/proxy.rb', line 34 def password @password end |
#port ⇒ Integer
Gets the value for the ‘port’ attribute of the the ‘proxy’ object defined in continuum.json. The port of the desired proxy to route all network traffic from Continuum through. Set to null if you don’t want to use a proxy.
20 21 22 |
# File 'src/lib/continuum/proxy.rb', line 20 def port @port end |
#username ⇒ String
Gets the value for the ‘username’ attribute of the the ‘proxy’ object defined in continuum.json. The username for the desired proxy to route all network traffic from Continuum through. Set to null if your proxy does not require a username, or if you don’t want to use a proxy.
27 28 29 |
# File 'src/lib/continuum/proxy.rb', line 27 def username @username end |