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



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

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

Instance Attribute Details

#new_nickObject (readonly)

new nick



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

def new_nick
  @new_nick
end

#original_nickObject (readonly)

previous nick



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

def original_nick
  @original_nick
end