Sha256: a96df243e530ed8cc4e3019454955b685b26d101d5fdde142b7c4d18fce438cc

Contents?: true

Size: 356 Bytes

Versions: 5

Compression:

Stored size: 356 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.include?("Touch")
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
browser-6.1.0 lib/browser/device/surface.rb
browser-6.0.0 lib/browser/device/surface.rb
browser-5.3.1 lib/browser/device/surface.rb
browser-5.3.0 lib/browser/device/surface.rb
browser-5.2.0 lib/browser/device/surface.rb