Class: ScreenObject::AppiumServer
- Inherits:
-
Object
- Object
- ScreenObject::AppiumServer
- Defined in:
- lib/screen-object/appium_server.rb
Instance Attribute Summary collapse
-
#process ⇒ Object
Returns the value of attribute process.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ AppiumServer
constructor
A new instance of AppiumServer.
-
#start ⇒ Object
Start the appium server.
-
#stop ⇒ Object
Stop the appium server.
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
#process ⇒ Object
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
#start ⇒ Object
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 |
#stop ⇒ Object
Stop the appium server
43 44 45 |
# File 'lib/screen-object/appium_server.rb', line 43 def stop process.stop end |