Class: Browser::Device::Switch
- Inherits:
-
Base
- Object
- Base
- Browser::Device::Switch
show all
- Defined in:
- lib/browser/device/switch.rb
Instance Attribute Summary
Attributes inherited from Base
#ua
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#id ⇒ Object
6
7
8
|
# File 'lib/browser/device/switch.rb', line 6
def id
:switch
end
|
#match? ⇒ Boolean
14
15
16
|
# File 'lib/browser/device/switch.rb', line 14
def match?
ua.match?(/Nintendo Switch/i)
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/browser/device/switch.rb', line 10
def name
"Nintendo Switch"
end
|