Class: Startback::Websocket::Hub::Participant
- Inherits:
-
Object
- Object
- Startback::Websocket::Hub::Participant
- Defined in:
- lib/startback/websocket/hub/participant.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
Instance Method Summary collapse
-
#initialize(socket, context, metadata = {}) ⇒ Participant
constructor
A new instance of Participant.
Constructor Details
#initialize(socket, context, metadata = {}) ⇒ Participant
Returns a new instance of Participant.
6 7 8 9 10 |
# File 'lib/startback/websocket/hub/participant.rb', line 6 def initialize(socket, context, ={}) @socket = socket @context = context @metadata = end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
11 12 13 |
# File 'lib/startback/websocket/hub/participant.rb', line 11 def context @context end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
11 12 13 |
# File 'lib/startback/websocket/hub/participant.rb', line 11 def @metadata end |
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
11 12 13 |
# File 'lib/startback/websocket/hub/participant.rb', line 11 def socket @socket end |