Class: Net::IRC::RplNamreply

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

Overview

353 <target> ( “=” | “*” | “@” ) <channel> :[ “@” | “+” ] <nick> *( “ ” [ “@” / “+” ] <nick> )

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary collapse

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(target, channel_type, channel, names) ⇒ RplNamreply

Returns a new instance of RplNamreply.



429
430
431
432
433
434
# File 'lib/net/irc.rb', line 429

def initialize(target, channel_type, channel, names)
  @channel_type = channel_type
  @channel = channel
  @names = names.split(' ')
  super(nil, 'RPL_NAMREPLY', target, @channel_type, @channel, names, nil)
end

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



427
428
429
# File 'lib/net/irc.rb', line 427

def channel
  @channel
end

#channel_typeObject

Returns the value of attribute channel_type.



427
428
429
# File 'lib/net/irc.rb', line 427

def channel_type
  @channel_type
end

#namesObject

Returns the value of attribute names.



427
428
429
# File 'lib/net/irc.rb', line 427

def names
  @names
end