Class: ModSpox::Messages::Outgoing::Whois

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nick, target_server = '') ⇒ Whois

nick

nick to whois

target_server

server to query

Query information about a user



12
13
14
15
# File 'lib/mod_spox/messages/outgoing/Whois.rb', line 12

def initialize(nick, target_server='')
    @nick = nick
    @target_server = target_server
end

Instance Attribute Details

#nickObject (readonly)

nick to whois



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

def nick
  @nick
end

#target_serverObject (readonly)

server to query



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

def target_server
  @target_server
end