fnando/browser

View on GitHub
lib/browser/platform/adobe_air.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Browser
  class Platform
    class AdobeAir < Base
      def match?
        ua =~ /AdobeAIR/
      end

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

      def name
        "Adobe AIR"
      end

      def id
        :adobe_air
      end
    end
  end
end