Arie/tf2_line_parser

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

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

module TF2LineParser
  module Events
    class RoundLength < RoundEventWithVariables
      def self.round_type
        @round_type ||= 'Round_Length'
      end

      def self.round_variable_regex
        @round_variable_regex ||= /\(seconds "(?'length'.*)"\)/.freeze
      end

      def self.round_variable
        @round_variable ||= :length
      end
    end
  end
end