Module: Appium::Core::Base::HasNetworkConnection Private
- Included in:
- Driver
- Defined in:
- lib/appium_lib_core/common/base/has_network_connection.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #network_connection_type ⇒ Object private
- #network_connection_type=(connection_type) ⇒ Object private
Instance Method Details
#network_connection_type ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 25 26 27 28 29 30 |
# File 'lib/appium_lib_core/common/base/has_network_connection.rb', line 22 def network_connection_type connection_value = @bridge.network_connection connection_type = values_to_type[connection_value] # In case the connection type is not recognized return the # connection value. connection_type || connection_value end |
#network_connection_type=(connection_type) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 35 36 37 38 |
# File 'lib/appium_lib_core/common/base/has_network_connection.rb', line 32 def network_connection_type=(connection_type) raise ::Appium::Core::Error::ArgumentError, 'Invalid connection type' unless valid_type? connection_type connection_value = type_to_values[connection_type] @bridge.network_connection = connection_value end |