Class: IRCSupport::Message::Kick
- Inherits:
-
IRCSupport::Message
- Object
- IRCSupport::Message
- IRCSupport::Message::Kick
- Defined in:
- lib/ircsupport/message.rb
Instance Attribute Summary collapse
-
#channel ⇒ String
The name of the channel.
-
#kickee ⇒ String
The user being kicked.
-
#kicker ⇒ String
The user who is doing the kicking.
-
#message ⇒ String
The kick message, if any.
Attributes inherited from IRCSupport::Message
Instance Method Summary collapse
-
#initialize(args) ⇒ Kick
constructor
A new instance of Kick.
Methods inherited from IRCSupport::Message
Constructor Details
#initialize(args) ⇒ Kick
Returns a new instance of Kick.
356 357 358 359 360 361 362 363 |
# File 'lib/ircsupport/message.rb', line 356 def initialize(args) super(args) @kicker = args[:prefix] @channel = args[:args][0] @kickee = args[:args][1] @message = args[:args][2] @message = nil if @message && @message.empty? end |
Instance Attribute Details
#channel ⇒ String
Returns The name of the channel.
347 348 349 |
# File 'lib/ircsupport/message.rb', line 347 def channel @channel end |
#kickee ⇒ String
Returns The user being kicked.
350 351 352 |
# File 'lib/ircsupport/message.rb', line 350 def kickee @kickee end |
#kicker ⇒ String
Returns The user who is doing the kicking.
344 345 346 |
# File 'lib/ircsupport/message.rb', line 344 def kicker @kicker end |
#message ⇒ String
Returns The kick message, if any.
353 354 355 |
# File 'lib/ircsupport/message.rb', line 353 def @message end |