Arie/tf2_line_parser

View on GitHub
lib/tf2_line_parser/player.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module TF2LineParser
  class Player
    attr_accessor :name, :steam_id, :team

    def initialize(name, steam_id, team)
      @name = name
      @steam_id = steam_id
      @team = team
    end

    def ==(other)
      steam_id == other.steam_id
    end
  end
end