Class: Net::IRC::Nick

Inherits:
Message show all
Defined in:
lib/net/irc.rb

Overview

NICK <nickname>

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary collapse

Attributes inherited from Message

#command, #parameters, #prefix

Instance Method Summary collapse

Methods inherited from Message

command_for_number, parse, #prefix?, #to_s, #write

Constructor Details

#initialize(nickname) ⇒ Nick

Returns a new instance of Nick.



551
552
553
554
555
# File 'lib/net/irc.rb', line 551

def initialize(nickname)
  @nickname = nickname

  super(nil, 'NICK', @nickname)
end

Instance Attribute Details

#nicknameObject

Returns the value of attribute nickname.



549
550
551
# File 'lib/net/irc.rb', line 549

def nickname
  @nickname
end