Class: Browser::Platform::FirefoxOS
- Inherits:
-
Base
- Object
- Base
- Browser::Platform::FirefoxOS
show all
- Defined in:
- lib/browser/platform/firefox_os.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/firefox_os.rb', line 14
def id
:firefox_os
end
|
#match? ⇒ Boolean
18
19
20
|
# File 'lib/browser/platform/firefox_os.rb', line 18
def match?
ua !~ /(Android|Linux|BlackBerry|Windows|Mac)/ && ua.include?("Firefox")
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/browser/platform/firefox_os.rb', line 10
def name
"Firefox OS"
end
|
#version ⇒ Object
6
7
8
|
# File 'lib/browser/platform/firefox_os.rb', line 6
def version
"0"
end
|