Class: ModSpox::Messages::Outgoing::Kick
- Inherits:
-
Object
- Object
- ModSpox::Messages::Outgoing::Kick
- Defined in:
- lib/mod_spox/messages/outgoing/Kick.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
channel to kick user out of.
-
#nick ⇒ Object
readonly
nick of user to kick.
-
#reason ⇒ Object
readonly
reason for kick.
Instance Method Summary collapse
-
#initialize(nick, channel, reason = nil) ⇒ Kick
constructor
- 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.
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
#channel ⇒ Object (readonly)
channel to kick user out of
8 9 10 |
# File 'lib/mod_spox/messages/outgoing/Kick.rb', line 8 def channel @channel end |
#nick ⇒ Object (readonly)
nick of user to kick
6 7 8 |
# File 'lib/mod_spox/messages/outgoing/Kick.rb', line 6 def nick @nick end |
#reason ⇒ Object (readonly)
reason for kick
10 11 12 |
# File 'lib/mod_spox/messages/outgoing/Kick.rb', line 10 def reason @reason end |