Class: WebSocketEvent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



10
11
12
# File 'lib/websocketevent.rb', line 10

def content
  @content
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/websocketevent.rb', line 9

def type
  @type
end