Class: ModSpox::Messages::Incoming::Kick
- Defined in:
- lib/mod_spox/messages/incoming/Kick.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
channel user was kicked from.
-
#kickee ⇒ Object
readonly
nick that was kicked.
-
#kicker ⇒ Object
readonly
nick that performed the kick.
-
#reason ⇒ Object
readonly
reason for kick.
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(raw, channel, kicker, kickee, reason) ⇒ Kick
constructor
A new instance of Kick.
Constructor Details
#initialize(raw, channel, kicker, kickee, reason) ⇒ Kick
Returns a new instance of Kick.
15 16 17 18 19 20 21 |
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 15 def initialize(raw, channel, kicker, kickee, reason) super(raw) @channel = channel @kicker = kicker @kickee = kickee @reason = reason end |
Instance Attribute Details
#channel ⇒ Object (readonly)
channel user was kicked from
7 8 9 |
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 7 def channel @channel end |
#kickee ⇒ Object (readonly)
nick that was kicked
11 12 13 |
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 11 def kickee @kickee end |
#kicker ⇒ Object (readonly)
nick that performed the kick
9 10 11 |
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 9 def kicker @kicker end |
#reason ⇒ Object (readonly)
reason for kick
13 14 15 |
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 13 def reason @reason end |