Class: Circus::Messages::Kick
- Inherits:
-
Object
- Object
- Circus::Messages::Kick
- Defined in:
- lib/irc/messages/kick.rb
Instance Method Summary collapse
-
#initialize(channel, user, reason = "") ⇒ Kick
constructor
A new instance of Kick.
- #to_s ⇒ Object
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_s ⇒ Object
11 12 13 |
# File 'lib/irc/messages/kick.rb', line 11 def to_s "KICK #{@channel} #{@user} :#{@reason}" end |