Class: ModSpox::Messages::Incoming::Nick

Inherits:
Message
  • Object
show all
Defined in:
lib/mod_spox/messages/incoming/Nick.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, old_nick, new_nick) ⇒ Nick

old_nick

this should be the source

new_nick

this should be the target



17
18
19
20
21
# File 'lib/mod_spox/messages/incoming/Nick.rb', line 17

def initialize(raw, old_nick, new_nick)
    super(raw)
    @original_nick = old_nick
    @new_nick = new_nick
end

Instance Attribute Details

#new_nickObject (readonly)

new nick



10
11
12
# File 'lib/mod_spox/messages/incoming/Nick.rb', line 10

def new_nick
  @new_nick
end

#original_nickObject (readonly)

previous nick



8
9
10
# File 'lib/mod_spox/messages/incoming/Nick.rb', line 8

def original_nick
  @original_nick
end