Class: TF2LineParser::Events::IntermissionWinLimit
- Defined in:
- lib/tf2_line_parser/events/intermission_win_limit.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#team ⇒ Object
readonly
Returns the value of attribute team.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Attributes inherited from Event
#airshot, #cap_name, #cap_number, #customkill, #healing, #item, #length, #message, #method, #player, #role, #score, #target, #type, #ubercharge, #unknown, #value, #weapon
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(time, team, reason) ⇒ IntermissionWinLimit
constructor
A new instance of IntermissionWinLimit.
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
#initialize(time, team, reason) ⇒ IntermissionWinLimit
Returns a new instance of IntermissionWinLimit.
14 15 16 17 18 |
# File 'lib/tf2_line_parser/events/intermission_win_limit.rb', line 14 def initialize(time, team, reason) @time = parse_time(time) @team = team @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
4 5 6 |
# File 'lib/tf2_line_parser/events/intermission_win_limit.rb', line 4 def reason @reason end |
#team ⇒ Object (readonly)
Returns the value of attribute team.
4 5 6 |
# File 'lib/tf2_line_parser/events/intermission_win_limit.rb', line 4 def team @team end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
4 5 6 |
# File 'lib/tf2_line_parser/events/intermission_win_limit.rb', line 4 def time @time end |
Class Method Details
.attributes ⇒ Object
10 11 12 |
# File 'lib/tf2_line_parser/events/intermission_win_limit.rb', line 10 def self.attributes @attributes ||= %i[time team reason] end |
.regex ⇒ Object
6 7 8 |
# File 'lib/tf2_line_parser/events/intermission_win_limit.rb', line 6 def self.regex @regex ||= /#{regex_time} Team "(?'team'Red|Blue|RED|BLUE)" triggered "Intermission_Win_Limit" due to (?'reason'.*)/.freeze end |