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
#platform, #ua
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#id ⇒ Object
14
15
16
|
# File 'lib/browser/platform/blackberry.rb', line 14
def id
:blackberry
end
|
#match? ⇒ Boolean
6
7
8
|
# File 'lib/browser/platform/blackberry.rb', line 6
def match?
ua.match?(/BB10|BlackBerry/)
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/browser/platform/blackberry.rb', line 10
def name
"BlackBerry"
end
|
#version ⇒ Object
18
19
20
|
# File 'lib/browser/platform/blackberry.rb', line 18
def version
ua[%r{(?:Version|BlackBerry[\da-z]+)/([\d.]+)}, 1]
end
|