Arie/tf2_line_parser

View on GitHub
lib/tf2_line_parser/events/role_change.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module TF2LineParser
  module Events
    class RoleChange < PlayerActionEvent
      def self.action_text
        @action_text ||= 'changed role to'
      end

      def self.regex_action
        @regex_role ||= '\"(?\'role\'.*)\"'
      end

      def self.item
        :role
      end
    end
  end
end