Class: Tinker::WebSocket
- Inherits:
-
Object
- Object
- Tinker::WebSocket
- Defined in:
- lib/tinker/websocket.rb
Instance Attribute Summary collapse
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
Instance Method Summary collapse
-
#initialize(websocket) ⇒ WebSocket
constructor
A new instance of WebSocket.
- #send(params) ⇒ Object
Constructor Details
#initialize(websocket) ⇒ WebSocket
Returns a new instance of WebSocket.
4 5 6 |
# File 'lib/tinker/websocket.rb', line 4 def initialize(websocket) @socket = websocket end |
Instance Attribute Details
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
2 3 4 |
# File 'lib/tinker/websocket.rb', line 2 def socket @socket end |