Class: Flexo::Events::NickEvent

Inherits:
Flexo::Event show all
Defined in:
lib/flexo/events/nick.rb

Instance Attribute Summary collapse

Attributes inherited from Flexo::Event

#data, #nickname

Instance Method Summary collapse

Methods inherited from Flexo::Event

#me?

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

#newObject (readonly)

Returns the value of attribute new.



5
6
7
# File 'lib/flexo/events/nick.rb', line 5

def new
  @new
end

#oldObject (readonly)

Returns the value of attribute old.



4
5
6
# File 'lib/flexo/events/nick.rb', line 4

def old
  @old
end