Sha256: 56217ae72c292c1ebdc0e4807453fe4063966e2a01a4f2d56e5d6cb674f77151

Contents?: true

Size: 255 Bytes

Versions: 13

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Device
    class Switch < Base
      def id
        :switch
      end

      def name
        "Nintendo Switch"
      end

      def match?
        ua =~ /Nintendo Switch/i
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
browser-5.1.0 lib/browser/device/switch.rb
browser-5.0.0 lib/browser/device/switch.rb
browser-4.2.0 lib/browser/device/switch.rb
browser-4.1.0 lib/browser/device/switch.rb
browser-4.0.0 lib/browser/device/switch.rb
browser-3.0.3 lib/browser/device/switch.rb
browser-3.0.2 lib/browser/device/switch.rb
browser-3.0.1 lib/browser/device/switch.rb
browser-3.0.0 lib/browser/device/switch.rb
browser-2.7.1 lib/browser/device/switch.rb
browser-2.7.0 lib/browser/device/switch.rb
browser-2.6.1 lib/browser/device/switch.rb
browser-2.6.0 lib/browser/device/switch.rb