Class: Browser::Platform::FirefoxOS

Inherits:
Base
  • Object
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

Constructor Details

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

Instance Method Details

#idObject



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

def id
  :firefox_os
end

#match?Boolean

Returns:

  • (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

#nameObject



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

def name
  "Firefox OS"
end

#versionObject



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

def version
  "0"
end