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
2 3 4 |
# File 'lib/applitools/connectivity/proxy.rb', line 2 def password @password end |
#uri ⇒ Object
Returns the value of attribute uri
2 3 4 |
# File 'lib/applitools/connectivity/proxy.rb', line 2 def uri @uri end |
#user ⇒ Object
Returns the value of attribute user
2 3 4 |
# File 'lib/applitools/connectivity/proxy.rb', line 2 def user @user end |
Instance Method Details
#to_hash ⇒ Object
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 |