class Balotelli::Core::Kick
Attributes
channel[R]
reason[R]
who[R]
Public Class Methods
new(data, klass)
click to toggle source
# File lib/balotelli/core/kick.rb, line 5 def initialize(data, klass) @who = data[:who] @channel = data[:channel] @reason = data[:reason].tr(' ', ' ') # space to nbsp @klass = klass end
Public Instance Methods
execute!()
click to toggle source
# File lib/balotelli/core/kick.rb, line 12 def execute! @klass.sputs("KICK #{channel} #{who} #{reason}") end
Also aliased as: execute