Class: SSCBot::ChatLog::PlayerMessage
- Defined in:
- lib/ssc.bot/chat_log/messages.rb
Overview
Direct Known Subclasses
ChatMessage, FreqMessage, PrivateMessage, PubMessage, TeamMessage
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
- #message ⇒ Object readonly
- #name ⇒ Object readonly
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(line, type:, name:, message:) ⇒ PlayerMessage
constructor
A new instance of PlayerMessage.
Methods inherited from Message
Constructor Details
#initialize(line, type:, name:, message:) ⇒ PlayerMessage
Returns a new instance of PlayerMessage.
26 27 28 29 30 31 |
# File 'lib/ssc.bot/chat_log/messages.rb', line 26 def initialize(line,type:,name:,message:) super(line,type: type) @message = @name = name end |
Instance Attribute Details
#message ⇒ Object (readonly)
23 24 25 |
# File 'lib/ssc.bot/chat_log/messages.rb', line 23 def @message end |
#name ⇒ Object (readonly)
24 25 26 |
# File 'lib/ssc.bot/chat_log/messages.rb', line 24 def name @name end |