Class: ModSpox::Messages::Outgoing::Kick

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nick, channel, reason = nil) ⇒ Kick

nick

nick of user to kick

channel

channel to kick user out of

reason

reason for kick

Request the forced removal of a user from a channel



15
16
17
18
19
# File 'lib/mod_spox/messages/outgoing/Kick.rb', line 15

def initialize(nick, channel, reason=nil)
    @nick = nick
    @channel = channel
    @reason = reason
end

Instance Attribute Details

#channelObject (readonly)

channel to kick user out of



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

def channel
  @channel
end

#nickObject (readonly)

nick of user to kick



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

def nick
  @nick
end

#reasonObject (readonly)

reason for kick



10
11
12
# File 'lib/mod_spox/messages/outgoing/Kick.rb', line 10

def reason
  @reason
end