Class: Flexo::Events::PartEvent

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



7
8
9
10
11
# File 'lib/flexo/events/part.rb', line 7

def initialize(*args)
  super
  @channel = @data.params[0]
  @reason  = @data.string
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



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

def channel
  @channel
end

#reasonObject (readonly)

Returns the value of attribute reason.



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

def reason
  @reason
end