Sha256: 4e32c3f42c2a7aeb8e650185b6c6a94ff87dcc26e2f84c3dd2080347039b82b9

Contents?: true

Size: 305 Bytes

Versions: 6

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Platform
    class KaiOS < Base
      def version
        ua[%r{KAIOS/([\d.]+)}, 1]
      end

      def name
        "KaiOS"
      end

      def id
        :kai_os
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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