Class: Browser::Platform::WindowsPhone
- Inherits:
-
Base
- Object
- Base
- Browser::Platform::WindowsPhone
show all
- Defined in:
- lib/browser/platform/windows_phone.rb
Instance Attribute Summary
Attributes inherited from Base
#platform, #ua
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#id ⇒ Object
14
15
16
|
# File 'lib/browser/platform/windows_phone.rb', line 14
def id
:windows_phone
end
|
#match? ⇒ Boolean
18
19
20
|
# File 'lib/browser/platform/windows_phone.rb', line 18
def match?
ua.include?("Windows Phone")
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/browser/platform/windows_phone.rb', line 10
def name
"Windows Phone"
end
|
#version ⇒ Object
6
7
8
|
# File 'lib/browser/platform/windows_phone.rb', line 6
def version
ua[/Windows Phone ([\d.]+)/, 1]
end
|