Arie/tf2_line_parser

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

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module TF2LineParser
  module Events
    class RoundEventWithoutVariables < Event
      def self.regex
        @regex ||= /#{regex_time} World triggered "#{round_type}"/.freeze
      end

      def self.attributes
        @attributes ||= [:time]
      end

      def initialize(time)
        @time = parse_time(time)
      end
    end
  end
end