Class: Flexo::Events::JoinEvent

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

Returns a new instance of JoinEvent.



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

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

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



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

def channel
  @channel
end

#nickObject (readonly)

Returns the value of attribute nick.



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

def nick
  @nick
end