Class: Optimizely::ProxyConfig
- Inherits:
-
Object
- Object
- Optimizely::ProxyConfig
- Defined in:
- lib/optimizely/config/proxy_config.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(host, port = nil, username = nil, password = nil) ⇒ ProxyConfig
constructor
A new instance of ProxyConfig.
Constructor Details
#initialize(host, port = nil, username = nil, password = nil) ⇒ ProxyConfig
Returns a new instance of ProxyConfig.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/optimizely/config/proxy_config.rb', line 23 def initialize(host, port = nil, username = nil, password = nil) # host - DNS name or IP address of proxy # port - port to use to acess the proxy # username - username if authorization is required # password - password if authorization is required @host = host @port = port @username = username @password = password end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
21 22 23 |
# File 'lib/optimizely/config/proxy_config.rb', line 21 def host @host end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
21 22 23 |
# File 'lib/optimizely/config/proxy_config.rb', line 21 def password @password end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
21 22 23 |
# File 'lib/optimizely/config/proxy_config.rb', line 21 def port @port end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
21 22 23 |
# File 'lib/optimizely/config/proxy_config.rb', line 21 def username @username end |