Class: SSCBot::ChatLog::QLogMessage

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, log_type:, filename: nil) ⇒ QLogMessage

Returns a new instance of QLogMessage.

Since:

  • 0.1.0



133
134
135
136
137
138
# File 'lib/ssc.bot/chat_log/messages.rb', line 133

def initialize(line,log_type:,filename: nil)
  super(line,type: %s(?log))

  @filename = filename
  @log_type = log_type
end

Instance Attribute Details

#filenameObject (readonly)

Since:

  • 0.1.0



130
131
132
# File 'lib/ssc.bot/chat_log/messages.rb', line 130

def filename
  @filename
end

#log_typeObject (readonly)

:open,:close

Since:

  • 0.1.0



131
132
133
# File 'lib/ssc.bot/chat_log/messages.rb', line 131

def log_type
  @log_type
end