Class: ModSpox::Messages::Outgoing::Names

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/outgoing/Names.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel, target = '') ⇒ Names

channel

channel to request names from

target

forward to this server to supply response

List visible nicknames. Supply empty string for channel to get entire list



13
14
15
16
# File 'lib/mod_spox/messages/outgoing/Names.rb', line 13

def initialize(channel, target='')
    @channel = channel
    @target = target
end

Instance Attribute Details

#channelObject (readonly)

channel to request names



6
7
8
# File 'lib/mod_spox/messages/outgoing/Names.rb', line 6

def channel
  @channel
end

#targetObject (readonly)

server to forward request to



8
9
10
# File 'lib/mod_spox/messages/outgoing/Names.rb', line 8

def target
  @target
end