Class: Buddhy::Bot

Inherits:
Object
  • Object
show all
Defined in:
lib/buddhy/bot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nick, name) ⇒ Bot

Returns a new instance of Bot.



6
7
8
9
# File 'lib/buddhy/bot.rb', line 6

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/buddhy/bot.rb', line 4

def name
  @name
end

#nickObject

Returns the value of attribute nick.



4
5
6
# File 'lib/buddhy/bot.rb', line 4

def nick
  @nick
end