Class: Flexo::Events::PongEvent

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

Returns a new instance of PongEvent.



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

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

Instance Attribute Details

#originObject (readonly)

Returns the value of attribute origin.



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

def origin
  @origin
end

#serverObject (readonly)

Returns the value of attribute server.



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

def server
  @server
end