Class: TF2LineParser::Events::JoinedTeam

Inherits:
PlayerActionEvent show all
Defined in:
lib/tf2_line_parser/events/joined_team.rb

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

Methods inherited from PlayerActionEvent

#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::PlayerActionEvent

Class Method Details

.action_textObject



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

def self.action_text
  @action_text ||= 'joined team'
end

.attributesObject



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

.itemObject



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

def self.item
  :team_name
end

.regex_actionObject



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

#teamObject



20
21
22
# File 'lib/tf2_line_parser/events/joined_team.rb', line 20

def team
  @team_name
end