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
#ua
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#id ⇒ Object
13
14
15
|
# File 'lib/browser/platform/windows_phone.rb', line 13
def id
:windows_phone
end
|
#match? ⇒ Boolean
17
18
19
|
# File 'lib/browser/platform/windows_phone.rb', line 17
def match?
ua =~ /Windows Phone/
end
|
#name ⇒ Object
9
10
11
|
# File 'lib/browser/platform/windows_phone.rb', line 9
def name
"Windows Phone"
end
|
#version ⇒ Object
5
6
7
|
# File 'lib/browser/platform/windows_phone.rb', line 5
def version
ua[/Windows Phone ([\d.]+)/, 1]
end
|