Sha256: 9a28c617bf21c71687edb0d15e48b93fc8f7416d13c5931351ad68cd8f527010

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true
module Browser
  class Platform
    class Android < Base
      def match?
        ua =~ /Android/
      end

      def name
        "Android"
      end

      def id
        :android
      end

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/browser-2.3.0/lib/browser/platform/android.rb
browser-2.3.0 lib/browser/platform/android.rb
browser-2.2.0 lib/browser/platform/android.rb
browser-2.1.0 lib/browser/platform/android.rb
browser-2.0.3 lib/browser/platform/android.rb
browser-2.0.2 lib/browser/platform/android.rb
browser-2.0.1 lib/browser/platform/android.rb