Class: TF2LineParser::Events::Chat
- Defined in:
- lib/tf2_line_parser/events/chat.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
Instance Method Summary collapse
-
#initialize(time, player_name, player_steam_id, player_team, message) ⇒ Chat
constructor
A new instance of Chat.
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
#initialize(time, player_name, player_steam_id, player_team, message) ⇒ Chat
Returns a new instance of Chat.
8 9 10 11 12 |
# File 'lib/tf2_line_parser/events/chat.rb', line 8 def initialize(time, player_name, player_steam_id, player_team, ) @time = parse_time(time) @player = Player.new(player_name, player_steam_id, player_team) @message = end |
Class Method Details
.attributes ⇒ Object
14 15 16 |
# File 'lib/tf2_line_parser/events/chat.rb', line 14 def self.attributes @attributes ||= [:time, :player_nick, :player_steamid, :player_team, :message] end |