Class: Browser::Platform::Android
- Inherits:
-
Base
- Object
- Base
- Browser::Platform::Android
show all
- Defined in:
- lib/browser/platform/android.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/android.rb', line 14
def id
:android
end
|
#match? ⇒ Boolean
6
7
8
|
# File 'lib/browser/platform/android.rb', line 6
def match?
ua.include?("Android") && !ua.include?("KAIOS")
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/browser/platform/android.rb', line 10
def name
"Android"
end
|
#version ⇒ Object
18
19
20
|
# File 'lib/browser/platform/android.rb', line 18
def version
ua[/Android ([\d.]+)/, 1]
end
|