Class: Balotelli::Core::Join

Inherits:
Object
  • Object
show all
Defined in:
lib/balotelli/core/join.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, channel) ⇒ Join

Returns a new instance of Join.



5
6
7
8
9
# File 'lib/balotelli/core/join.rb', line 5

def initialize(user, channel)
  @user = user
  @user_nick = Core::Utils.nick_from_user(@user)
  @channel = channel
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



4
5
6
# File 'lib/balotelli/core/join.rb', line 4

def channel
  @channel
end

#userObject (readonly)

Returns the value of attribute user.



4
5
6
# File 'lib/balotelli/core/join.rb', line 4

def user
  @user
end

#user_nickObject (readonly)

Returns the value of attribute user_nick.



4
5
6
# File 'lib/balotelli/core/join.rb', line 4

def user_nick
  @user_nick
end

Instance Method Details

#responderObject



11
12
13
# File 'lib/balotelli/core/join.rb', line 11

def responder
  @channel
end