Class: Circus::Messages::Kick

Inherits:
Object
  • Object
show all
Defined in:
lib/irc/messages/kick.rb

Instance Method Summary collapse

Constructor Details

#initialize(channel, user, reason = "") ⇒ Kick

Returns a new instance of Kick.



5
6
7
8
9
# File 'lib/irc/messages/kick.rb', line 5

def initialize(channel, user, reason = "")
  @channel = channel
  @user = user
  @reason = reason
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/irc/messages/kick.rb', line 11

def to_s
  "KICK #{@channel} #{@user} :#{@reason}"
end