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



2
3
4
# File 'lib/applitools/connectivity/proxy.rb', line 2

def password
  @password
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



2
3
4
# File 'lib/applitools/connectivity/proxy.rb', line 2

def uri
  @uri
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



2
3
4
# File 'lib/applitools/connectivity/proxy.rb', line 2

def user
  @user
end

Instance Method Details

#to_hashObject



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

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