Class: TF2LineParser::Events::RoundLength
- Inherits:
-
RoundEventWithVariables
- Object
- Event
- RoundEventWithVariables
- TF2LineParser::Events::RoundLength
- 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_type ⇒ Object
7 8 9 |
# File 'lib/tf2_line_parser/events/round_length.rb', line 7 def self.round_type @round_type ||= "Round_Length".freeze end |
.round_variable ⇒ Object
15 16 17 |
# File 'lib/tf2_line_parser/events/round_length.rb', line 15 def self.round_variable @round_variable ||= :length end |
.round_variable_regex ⇒ Object
11 12 13 |
# File 'lib/tf2_line_parser/events/round_length.rb', line 11 def self.round_variable_regex @round_variable_regex ||= /\(seconds \"(?'length'.*)"\)/.freeze end |