Class: Optimizely::ProxyConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/optimizely/config/proxy_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostObject (readonly)

Returns the value of attribute host.



21
22
23
# File 'lib/optimizely/config/proxy_config.rb', line 21

def host
  @host
end

#passwordObject (readonly)

Returns the value of attribute password.



21
22
23
# File 'lib/optimizely/config/proxy_config.rb', line 21

def password
  @password
end

#portObject (readonly)

Returns the value of attribute port.



21
22
23
# File 'lib/optimizely/config/proxy_config.rb', line 21

def port
  @port
end

#usernameObject (readonly)

Returns the value of attribute username.



21
22
23
# File 'lib/optimizely/config/proxy_config.rb', line 21

def username
  @username
end