Class: SSCBot::ChatLog::PlayerMessage

Inherits:
Message
  • Object
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 Message

#line, #type

Instance Method Summary collapse

Methods inherited from Message

add_type, #type?, valid_type?

Constructor Details

#initialize(line, type:, name:, message:) ⇒ PlayerMessage

Returns a new instance of PlayerMessage.

Since:

  • 0.1.0



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 = message
  @name = name
end

Instance Attribute Details

#messageObject (readonly)

Since:

  • 0.1.0



23
24
25
# File 'lib/ssc.bot/chat_log/messages.rb', line 23

def message
  @message
end

#nameObject (readonly)

Since:

  • 0.1.0



24
25
26
# File 'lib/ssc.bot/chat_log/messages.rb', line 24

def name
  @name
end