Sha256: 27f1859c6b2ceea574caa22c8806fe2beef0cf6bda2d09781172c9a216d810d7

Contents?: true

Size: 349 Bytes

Versions: 10

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Device
    class Surface < Base
      def id
        :surface
      end

      def name
        "Microsoft Surface"
      end

      def match?
        platform.windows_rt? && ua =~ /Touch/
      end

      private def platform
        @platform ||= Platform.new(ua)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
browser-5.1.0 lib/browser/device/surface.rb
browser-5.0.0 lib/browser/device/surface.rb
browser-4.2.0 lib/browser/device/surface.rb
browser-4.1.0 lib/browser/device/surface.rb
browser-4.0.0 lib/browser/device/surface.rb
browser-3.0.3 lib/browser/device/surface.rb
browser-3.0.2 lib/browser/device/surface.rb
browser-3.0.1 lib/browser/device/surface.rb
browser-3.0.0 lib/browser/device/surface.rb
browser-2.7.1 lib/browser/device/surface.rb