Class: SSCBot::ChatLog::ChatMessage
- Inherits:
-
PlayerMessage
- Object
- Message
- PlayerMessage
- SSCBot::ChatLog::ChatMessage
- Defined in:
- lib/ssc.bot/chat_log/messages.rb
Overview
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
- #channel ⇒ Object readonly
Attributes inherited from PlayerMessage
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(line, channel:, name:, message:) ⇒ ChatMessage
constructor
A new instance of ChatMessage.
Methods inherited from Message
Constructor Details
#initialize(line, channel:, name:, message:) ⇒ ChatMessage
Returns a new instance of ChatMessage.
41 42 43 44 45 |
# File 'lib/ssc.bot/chat_log/messages.rb', line 41 def initialize(line,channel:,name:,message:) super(line,type: :chat,name: name,message: ) @channel = channel end |
Instance Attribute Details
#channel ⇒ Object (readonly)
39 40 41 |
# File 'lib/ssc.bot/chat_log/messages.rb', line 39 def channel @channel end |