Class: SSCBot::ChatLog::ChatMessage

Inherits:
PlayerMessage show all
Defined in:
lib/ssc.bot/chat_log/messages.rb

Overview

Author:

  • Jonathan Bradley Whited

Since:

  • 0.1.0

Constant Summary

Constants inherited from Message

Message::TYPES

Instance Attribute Summary collapse

Attributes inherited from PlayerMessage

#message, #name

Attributes inherited from Message

#line, #type

Instance Method Summary collapse

Methods inherited from Message

add_type, #type?, valid_type?

Constructor Details

#initialize(line, channel:, name:, message:) ⇒ ChatMessage

Returns a new instance of ChatMessage.

Since:

  • 0.1.0



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: message)

  @channel = channel
end

Instance Attribute Details

#channelObject (readonly)

Since:

  • 0.1.0



39
40
41
# File 'lib/ssc.bot/chat_log/messages.rb', line 39

def channel
  @channel
end