Class: Net::IRC::ReplyWithRegistryParameters

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

Overview

901 <target> <id> <username> <hostname> :You are now logged in. (id <id>, username <username>, hostname <hostname>)

Direct Known Subclasses

RplLoggedin, RplLoggedout

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary collapse

Attributes inherited from ReplyWithTarget

#target

Attributes inherited from Reply

#text

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(prefix, command, target, id, username, hostname, text) ⇒ ReplyWithRegistryParameters

Returns a new instance of ReplyWithRegistryParameters.



494
495
496
497
498
499
500
# File 'lib/net/irc.rb', line 494

def initialize(prefix, command, target, id, username, hostname, text)
  @id = id
  @username = username
  @hostname = hostname
  
  super(prefix, command, target, id, username, hostname, text)
end

Instance Attribute Details

#hostnameObject

Returns the value of attribute hostname.



492
493
494
# File 'lib/net/irc.rb', line 492

def hostname
  @hostname
end

#idObject

Returns the value of attribute id.



492
493
494
# File 'lib/net/irc.rb', line 492

def id
  @id
end

#usernameObject

Returns the value of attribute username.



492
493
494
# File 'lib/net/irc.rb', line 492

def username
  @username
end