Class: Browser::Platform::AdobeAir

Inherits:
Base
  • Object
show all
Defined in:
lib/browser/platform/adobe_air.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



18
19
20
# File 'lib/browser/platform/adobe_air.rb', line 18

def id
  :adobe_air
end

#match?Boolean

Returns:

  • (Boolean)


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

def match?
  ua.include?("AdobeAIR")
end

#nameObject



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

def name
  "Adobe AIR"
end

#versionObject



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

def version
  ua[%r{AdobeAIR/([\d.]+)}, 1]
end