class Balotelli::Core::PrivMsg
Attributes
channel[R]
content[R]
responder[R]
user[R]
user_nick[R]
Public Class Methods
new(user, channel, message, privacy = false)
click to toggle source
# File lib/balotelli/core/priv_msg.rb, line 5 def initialize(user, channel, message, privacy = false) @user = user @user_nick = @user.match(/\A(\S+)!.*/)[1] @channel = channel @content = message @responder = privacy ? @user_nick : @channel end