Class: TF2LineParser::Events::RoundLength

Inherits:
RoundEventWithVariables show all
Defined in:
lib/tf2_line_parser/events/round_length.rb

Instance Attribute Summary

Attributes inherited from Event

#airshot, #cap_name, #cap_number, #customkill, #healing, #item, #length, #message, #method, #player, #role, #score, #target, #team, #time, #type, #ubercharge, #unknown, #value, #weapon

Class Method Summary collapse

Methods inherited from RoundEventWithVariables

attributes, #initialize, regex

Methods inherited from Event

#parse_time, regex_cap, regex_console, regex_message, regex_player, regex_results, regex_target, regex_time, time_format, types

Constructor Details

This class inherits a constructor from TF2LineParser::Events::RoundEventWithVariables

Class Method Details

.round_typeObject



6
7
8
# File 'lib/tf2_line_parser/events/round_length.rb', line 6

def self.round_type
  @round_type ||= 'Round_Length'
end

.round_variableObject



14
15
16
# File 'lib/tf2_line_parser/events/round_length.rb', line 14

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

.round_variable_regexObject



10
11
12
# File 'lib/tf2_line_parser/events/round_length.rb', line 10

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