Class: ScreenObject::AppiumServer

Inherits:
Object
  • Object
show all
Defined in:
lib/screen-object/appium_server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ AppiumServer

Returns a new instance of AppiumServer.



28
29
30
# File 'lib/screen-object/appium_server.rb', line 28

def initialize(params={})
  @params = params
end

Instance Attribute Details

#processObject

Returns the value of attribute process.



25
26
27
# File 'lib/screen-object/appium_server.rb', line 25

def process
  @process
end

Instance Method Details

#startObject

Start the appium server



35
36
37
38
# File 'lib/screen-object/appium_server.rb', line 35

def start
  @process = ChildProcess.build(*parameters)
  process.start
end

#stopObject

Stop the appium server



43
44
45
# File 'lib/screen-object/appium_server.rb', line 43

def stop
  process.stop
end