Class: Flexo::Events::QuitEvent

Inherits:
Flexo::Event show all
Defined in:
lib/flexo/events/quit.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) ⇒ QuitEvent

Returns a new instance of QuitEvent.



6
7
8
9
# File 'lib/flexo/events/quit.rb', line 6

def initialize(*args)
  super
  @reason = @data.string
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



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

def reason
  @reason
end