Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / logstash   deb

Repository URL to install this package:

module UserAgentParser
  class Device
    attr_reader :name

    def initialize(name = nil)
      @name = name || 'Other'
    end

    def to_s
      name
    end

    def inspect
      "#<#{self.class} #{to_s}>"
    end

    def eql?(other)
      self.class.eql?(other.class) && name == other.name
    end

    alias_method :==, :eql?
  end
end