Class: Flexo::Events::PongEvent
- Inherits:
-
Flexo::Event
- Object
- Flexo::Event
- Flexo::Events::PongEvent
- Defined in:
- lib/flexo/events/pong.rb
Instance Attribute Summary collapse
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Attributes inherited from Flexo::Event
Instance Method Summary collapse
-
#initialize(*args) ⇒ PongEvent
constructor
A new instance of PongEvent.
Methods inherited from Flexo::Event
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
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
5 6 7 |
# File 'lib/flexo/events/pong.rb', line 5 def origin @origin end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
4 5 6 |
# File 'lib/flexo/events/pong.rb', line 4 def server @server end |