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
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_nick ⇒ Object (readonly)
new nick
9 10 11 |
# File 'lib/mod_spox/messages/incoming/Nick.rb', line 9 def new_nick @new_nick end |
#original_nick ⇒ Object (readonly)
previous nick
7 8 9 |
# File 'lib/mod_spox/messages/incoming/Nick.rb', line 7 def original_nick @original_nick end |