Class: TF2LineParser::Events::JoinedTeam
Instance Attribute Summary
Attributes inherited from Event
#airshot, #cap_name, #cap_number, #customkill, #healing, #item, #length, #message, #method, #player, #role, #score, #target, #time, #type, #ubercharge, #unknown, #value, #weapon
Class Method Summary
collapse
Instance Method Summary
collapse
#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
Class Method Details
.action_text ⇒ Object
4
5
6
|
# File 'lib/tf2_line_parser/events/joined_team.rb', line 4
def self.action_text
@action_text ||= 'joined team'
end
|
.attributes ⇒ Object
16
17
18
|
# File 'lib/tf2_line_parser/events/joined_team.rb', line 16
def self.attributes
@attributes ||= %i[time player_section team_name]
end
|
.item ⇒ Object
12
13
14
|
# File 'lib/tf2_line_parser/events/joined_team.rb', line 12
def self.item
:team_name
end
|
.regex_action ⇒ Object
8
9
10
|
# File 'lib/tf2_line_parser/events/joined_team.rb', line 8
def self.regex_action
@regex_team ||= '\"(?\'team_name\'.*)\"'
end
|
Instance Method Details
#team ⇒ Object
20
21
22
|
# File 'lib/tf2_line_parser/events/joined_team.rb', line 20
def team
@team_name
end
|