Class: Browser::Platform::AdobeAir

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



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

def id
  :adobe_air
end

#match?Boolean

Returns:

  • (Boolean)


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

def match?
  ua =~ /AdobeAIR/
end

#nameObject



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

def name
  "Adobe AIR"
end

#versionObject



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

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