Class: Browser::Platform::BlackBerry
- Inherits:
-
Base
- Object
- Base
- Browser::Platform::BlackBerry
show all
- Defined in:
- lib/browser/platform/blackberry.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/blackberry.rb', line 13
def id
:blackberry
end
|
#match? ⇒ Boolean
5
6
7
|
# File 'lib/browser/platform/blackberry.rb', line 5
def match?
ua =~ /BB10|BlackBerry/
end
|
#name ⇒ Object
9
10
11
|
# File 'lib/browser/platform/blackberry.rb', line 9
def name
"BlackBerry"
end
|
#version ⇒ Object
17
18
19
|
# File 'lib/browser/platform/blackberry.rb', line 17
def version
ua[%r[(?:Version|BlackBerry[\da-z]+)/([\d.]+)], 1]
end
|