Class: IRCSupport::Message::Kick

Inherits:
IRCSupport::Message show all
Defined in:
lib/ircsupport/message.rb

Instance Attribute Summary collapse

Attributes inherited from IRCSupport::Message

#args, #command, #prefix

Instance Method Summary collapse

Methods inherited from IRCSupport::Message

#type

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

#channelString

Returns The name of the channel.

Returns:

  • (String)

    The name of the channel.



347
348
349
# File 'lib/ircsupport/message.rb', line 347

def channel
  @channel
end

#kickeeString

Returns The user being kicked.

Returns:

  • (String)

    The user being kicked.



350
351
352
# File 'lib/ircsupport/message.rb', line 350

def kickee
  @kickee
end

#kickerString

Returns The user who is doing the kicking.

Returns:

  • (String)

    The user who is doing the kicking.



344
345
346
# File 'lib/ircsupport/message.rb', line 344

def kicker
  @kicker
end

#messageString

Returns The kick message, if any.

Returns:

  • (String)

    The kick message, if any.



353
354
355
# File 'lib/ircsupport/message.rb', line 353

def message
  @message
end