Class: Flexo::Events::NickEvent
- Inherits:
-
Flexo::Event
- Object
- Flexo::Event
- Flexo::Events::NickEvent
- Defined in:
- lib/flexo/events/nick.rb
Instance Attribute Summary collapse
-
#new ⇒ Object
readonly
Returns the value of attribute new.
-
#old ⇒ Object
readonly
Returns the value of attribute old.
Attributes inherited from Flexo::Event
Instance Method Summary collapse
-
#initialize(*args) ⇒ NickEvent
constructor
A new instance of NickEvent.
Methods inherited from Flexo::Event
Constructor Details
#initialize(*args) ⇒ NickEvent
Returns a new instance of NickEvent.
7 8 9 10 11 |
# File 'lib/flexo/events/nick.rb', line 7 def initialize(*args) super @old = @nickname @new = @data.params[0] || @data.string end |
Instance Attribute Details
#new ⇒ Object (readonly)
Returns the value of attribute new.
5 6 7 |
# File 'lib/flexo/events/nick.rb', line 5 def new @new end |
#old ⇒ Object (readonly)
Returns the value of attribute old.
4 5 6 |
# File 'lib/flexo/events/nick.rb', line 4 def old @old end |