Class: SSCBot::ChatLog::QNamelenMessage

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, namelen:) ⇒ QNamelenMessage

Returns a new instance of QNamelenMessage.

Since:

  • 0.1.0



148
149
150
151
152
# File 'lib/ssc.bot/chat_log/messages.rb', line 148

def initialize(line,namelen:)
  super(line,type: %s(?namelen))

  @namelen = namelen
end

Instance Attribute Details

#namelenObject (readonly)

Since:

  • 0.1.0



146
147
148
# File 'lib/ssc.bot/chat_log/messages.rb', line 146

def namelen
  @namelen
end