Module: RDee::MobileDevices
- Included in:
- DesiredCapabilities, MobileCapabilities, TargetParser
- Defined in:
- lib/rdee/mobile_devices.rb
Instance Method Summary collapse
- #mobile?(value) ⇒ Boolean
- #mobile_browsers ⇒ Object
- #mobile_platform ⇒ Object
- #mobile_targets ⇒ Object
Instance Method Details
#mobile?(value) ⇒ Boolean
5 6 7 |
# File 'lib/rdee/mobile_devices.rb', line 5 def mobile?(value) mobile_targets.include? target_for(value) end |
#mobile_browsers ⇒ Object
14 15 16 17 18 19 |
# File 'lib/rdee/mobile_devices.rb', line 14 def mobile_browsers @mobile_browsers ||= { ios: 'Safari', android: 'Browser' } end |
#mobile_platform ⇒ Object
21 22 23 24 25 26 |
# File 'lib/rdee/mobile_devices.rb', line 21 def mobile_platform @mobile_platform ||= { ios: 'iOS', android: 'Android' } end |
#mobile_targets ⇒ Object
10 11 12 |
# File 'lib/rdee/mobile_devices.rb', line 10 def mobile_targets mobile_browsers.keys end |