Class: Net::IRC::Pass

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

Overview

PASS <password>

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(password) ⇒ Pass

Returns a new instance of Pass.



561
562
563
564
565
# File 'lib/net/irc.rb', line 561

def initialize(password)
  @password = password

  super(nil, 'PASS', @password)
end

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



559
560
561
# File 'lib/net/irc.rb', line 559

def password
  @password
end