Class: Appium::Core::DirectConnections

Inherits:
Object
  • Object
show all
Defined in:
lib/appium_lib_core/driver.rb

Overview

DirectConnections has capabilities of directConnect

Constant Summary collapse

KEYS =
{
  protocol: 'directConnectProtocol',
  host: 'directConnectHost',
  port: 'directConnectPort',
  path: 'directConnectPath'
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capabilities) ⇒ DirectConnections


86
87
88
89
90
91
# File 'lib/appium_lib_core/driver.rb', line 86

def initialize(capabilities)
  @protocol = capabilities[KEYS[:protocol]]
  @host = capabilities[KEYS[:host]]
  @port = capabilities[KEYS[:port]]
  @path = capabilities[KEYS[:path]]
end

Instance Attribute Details

#hoststring (readonly)


78
79
80
# File 'lib/appium_lib_core/driver.rb', line 78

def host
  @host
end

#pathstring (readonly)


84
85
86
# File 'lib/appium_lib_core/driver.rb', line 84

def path
  @path
end

#portinteger (readonly)


81
82
83
# File 'lib/appium_lib_core/driver.rb', line 81

def port
  @port
end

#protocolstring (readonly)


75
76
77
# File 'lib/appium_lib_core/driver.rb', line 75

def protocol
  @protocol
end