Class: ModSpox::Messages::Internal::ChangeNick

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/internal/ChangeNick.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(new_nick) ⇒ ChangeNick

new_nick: nick to change to Tells the bot it needs to change its nick



9
10
11
# File 'lib/mod_spox/messages/internal/ChangeNick.rb', line 9

def initialize(new_nick)
    @new_nick = new_nick
end

Instance Attribute Details

#new_nickObject (readonly)

change bot’s nick to this nick



6
7
8
# File 'lib/mod_spox/messages/internal/ChangeNick.rb', line 6

def new_nick
  @new_nick
end