Class: Browser::Platform::FirefoxOS

Inherits:
Base
  • Object
show all
Defined in:
lib/browser/platform/firefox_os.rb

Instance Attribute Summary

Attributes inherited from Base

#ua

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Browser::Platform::Base

Instance Method Details

#idObject



13
14
15
# File 'lib/browser/platform/firefox_os.rb', line 13

def id
  :firefox_os
end

#match?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/browser/platform/firefox_os.rb', line 17

def match?
  ua !~ /(Android|Linux|BlackBerry|Windows|Mac)/ && ua =~ /Firefox/
end

#nameObject



9
10
11
# File 'lib/browser/platform/firefox_os.rb', line 9

def name
  "Firefox OS"
end

#versionObject



5
6
7
# File 'lib/browser/platform/firefox_os.rb', line 5

def version
  "0"
end