Class: WebSocketEvent
- Inherits:
-
Object
- Object
- WebSocketEvent
- Defined in:
- lib/websocketevent.rb
Overview
websocketevent.rb
~~~~~~~~~
This module implements the WebSocketEvent class.
:authors: Konstantin Bokarius.
:copyright: (c) 2015 by Fanout, Inc.
:license: MIT, see LICENSE for more details.
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, content = nil) ⇒ WebSocketEvent
constructor
A new instance of WebSocketEvent.
Constructor Details
#initialize(type, content = nil) ⇒ WebSocketEvent
Returns a new instance of WebSocketEvent.
12 13 14 15 |
# File 'lib/websocketevent.rb', line 12 def initialize(type, content=nil) @type = type @content = content end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
10 11 12 |
# File 'lib/websocketevent.rb', line 10 def content @content end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/websocketevent.rb', line 9 def type @type end |