Class: UIABase

Inherits:
Object
  • Object
show all
Defined in:
lib/calios-uia-extension/uia_base.rb

Overview

Base class for UIA commands

Direct Known Subclasses

UIAAlert, UIAPopover, UIATarget

Class Method Summary collapse

Class Method Details

.execute(aCommand) ⇒ Object



8
9
10
# File 'lib/calios-uia-extension/uia_base.rb', line 8

def execute(aCommand)
  Calabash::Cucumber::UIA.uia(aCommand)
end

.helpObject Also known as: h



20
21
22
# File 'lib/calios-uia-extension/uia_base.rb', line 20

def help
  public_methods(false)
end

.response(aHash) ⇒ Object



12
13
14
# File 'lib/calios-uia-extension/uia_base.rb', line 12

def response(aHash)
  aHash['value']
end

.response?(aHash) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/calios-uia-extension/uia_base.rb', line 16

def response?(aHash)
  response(aHash).to_boolean
end