Class: ModSpox::Messages::Incoming::Nick
- Defined in:
- lib/mod_spox/messages/incoming/Nick.rb
Instance Attribute Summary collapse
-
#new_nick ⇒ Object
readonly
new nick.
-
#original_nick ⇒ Object
readonly
previous nick.
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(raw, old_nick, new_nick) ⇒ Nick
constructor
- old_nick
- this should be the source new_nick
-
this should be the target.
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_nick ⇒ Object (readonly)
new nick
10 11 12 |
# File 'lib/mod_spox/messages/incoming/Nick.rb', line 10 def new_nick @new_nick end |
#original_nick ⇒ Object (readonly)
previous nick
8 9 10 |
# File 'lib/mod_spox/messages/incoming/Nick.rb', line 8 def original_nick @original_nick end |