Class: IRCSupport::Message::Error

Inherits:
IRCSupport::Message show all
Defined in:
lib/ircsupport/message.rb

Instance Attribute Summary collapse

Attributes inherited from IRCSupport::Message

#args, #command, #prefix

Instance Method Summary collapse

Methods inherited from IRCSupport::Message

#type

Constructor Details

#initialize(args) ⇒ Error

Returns a new instance of Error.



286
287
288
289
# File 'lib/ircsupport/message.rb', line 286

def initialize(args)
  super(args)
  @error = args[:args][0]
end

Instance Attribute Details

#errorString

Returns The error message.

Returns:

  • (String)

    The error message.



283
284
285
# File 'lib/ircsupport/message.rb', line 283

def error
  @error
end