Class: TF2LineParser::Events::RoleChange
- Inherits:
-
PlayerActionEvent
- Object
- Event
- PlayerActionEvent
- TF2LineParser::Events::RoleChange
- Defined in:
- lib/tf2_line_parser/events/role_change.rb
Direct Known Subclasses
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 PlayerActionEvent
attributes, #initialize, regex
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
This class inherits a constructor from TF2LineParser::Events::PlayerActionEvent
Class Method Details
.action_text ⇒ Object
6 7 8 |
# File 'lib/tf2_line_parser/events/role_change.rb', line 6 def self.action_text @action_text ||= 'changed role to' end |
.item ⇒ Object
14 15 16 |
# File 'lib/tf2_line_parser/events/role_change.rb', line 14 def self.item :role end |
.regex_action ⇒ Object
10 11 12 |
# File 'lib/tf2_line_parser/events/role_change.rb', line 10 def self.regex_action @regex_role ||= '\"(?\'role\'.*)\"' end |