Class: Applitools::Connectivity::Proxy
- Inherits:
-
Struct
- Object
- Struct
- Applitools::Connectivity::Proxy
- Defined in:
- lib/applitools/connectivity/proxy.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password
4 5 6 |
# File 'lib/applitools/connectivity/proxy.rb', line 4 def password @password end |
#uri ⇒ Object
Returns the value of attribute uri
4 5 6 |
# File 'lib/applitools/connectivity/proxy.rb', line 4 def uri @uri end |
#user ⇒ Object
Returns the value of attribute user
4 5 6 |
# File 'lib/applitools/connectivity/proxy.rb', line 4 def user @user end |
Instance Method Details
#to_hash ⇒ Object
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 |