Class: YAIB::User

Inherits:
Respond show all
Defined in:
lib/yaib/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Respond

#action, #notice, #privmsg

Constructor Details

#initialize(nick, bot) ⇒ User

Returns a new instance of User.



5
6
7
8
# File 'lib/yaib/user.rb', line 5

def initialize(nick, bot)
    @nick = nick
    @bot = bot
end

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



3
4
5
# File 'lib/yaib/user.rb', line 3

def channel
  @channel
end

#nickObject

Returns the value of attribute nick.



3
4
5
# File 'lib/yaib/user.rb', line 3

def nick
  @nick
end