fnando/browser

View on GitHub
lib/browser/device/switch.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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