Sha256: ed66e3f93a4d442c81ca0e4f56a2241c1ca0926291f79f5ba3929e6104b28419

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Platform
    class Android < Base
      def match?
        ua.include?("Android") && !ua.include?("KAIOS")
      end

      def name
        "Android"
      end

      def id
        :android
      end

      def version
        ua[/Android ([\d.]+)/, 1]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
browser-6.1.0 lib/browser/platform/android.rb
browser-6.0.0 lib/browser/platform/android.rb
browser-5.3.1 lib/browser/platform/android.rb
browser-5.3.0 lib/browser/platform/android.rb
browser-5.2.0 lib/browser/platform/android.rb