Class: TF2LineParser::Events::MatchEnd
- Inherits:
-
RoundEventWithVariables
- Object
- Event
- RoundEventWithVariables
- TF2LineParser::Events::MatchEnd
- Defined in:
- lib/tf2_line_parser/events/match_end.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
10 11 12 |
# File 'lib/tf2_line_parser/events/match_end.rb', line 10 def self.round_type "Game_Over" end |
.round_variable ⇒ Object
14 15 16 |
# File 'lib/tf2_line_parser/events/match_end.rb', line 14 def self.round_variable @round_variable ||= :reason end |
.round_variable_regex ⇒ Object
6 7 8 |
# File 'lib/tf2_line_parser/events/match_end.rb', line 6 def self.round_variable_regex @round_variable_regex ||= /reason "(?'reason'.*)"/.freeze end |