Class: Applitools::Connectivity::Proxy

Inherits:
Struct
  • Object
show all
Defined in:
lib/applitools/connectivity/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



4
5
6
# File 'lib/applitools/connectivity/proxy.rb', line 4

def password
  @password
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



4
5
6
# File 'lib/applitools/connectivity/proxy.rb', line 4

def uri
  @uri
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



4
5
6
# File 'lib/applitools/connectivity/proxy.rb', line 4

def user
  @user
end

Instance Method Details

#to_hashObject



5
6
7
8
9
10
11
# File 'lib/applitools/connectivity/proxy.rb', line 5

def to_hash
  result = {}
  result[:uri] = uri.is_a?(URI) ? uri : URI(uri)
  result[:user] = user unless user.nil?
  result[:password] = password unless password.nil?
  result
end