Class: TF2LineParser::Events::MiniRoundSelected

Inherits:
RoundEventWithVariables show all
Defined in:
lib/tf2_line_parser/events/mini_round_selected.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_player_section, parse_target_section, #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



8
9
10
# File 'lib/tf2_line_parser/events/mini_round_selected.rb', line 8

def self.round_type
  'Mini_Round_Selected'
end

.round_variableObject



12
13
14
# File 'lib/tf2_line_parser/events/mini_round_selected.rb', line 12

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

.round_variable_regexObject



4
5
6
# File 'lib/tf2_line_parser/events/mini_round_selected.rb', line 4

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