Class: IRCSupport::Message::Nick

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) ⇒ Nick

Returns a new instance of Nick.



410
411
412
413
414
# File 'lib/ircsupport/message.rb', line 410

def initialize(args)
  super(args)
  @changer = args[:prefix]
  @nickname = args[:args][0]
end

Instance Attribute Details

#changerString

Returns The user who is changing their nick.

Returns:

  • (String)

    The user who is changing their nick.



404
405
406
# File 'lib/ircsupport/message.rb', line 404

def changer
  @changer
end

#nicknameString

Returns The new nickname.

Returns:

  • (String)

    The new nickname.



407
408
409
# File 'lib/ircsupport/message.rb', line 407

def nickname
  @nickname
end