Class: Tep::WebSocket::ConnectionState
- Inherits:
-
Object
- Object
- Tep::WebSocket::ConnectionState
- Defined in:
- lib/tep/websocket/connection.rb
Overview
Per-recv-loop iteration state. Avoids tuple-returns from parse_from_buf calls (spinel multi-return support is uneven).
Instance Attribute Summary collapse
-
#avail ⇒ Object
Returns the value of attribute avail.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
-
#initialize ⇒ ConnectionState
constructor
A new instance of ConnectionState.
Constructor Details
#initialize ⇒ ConnectionState
Returns a new instance of ConnectionState.
165 166 167 168 |
# File 'lib/tep/websocket/connection.rb', line 165 def initialize @start = 0 @avail = 0 end |
Instance Attribute Details
#avail ⇒ Object
Returns the value of attribute avail.
164 165 166 |
# File 'lib/tep/websocket/connection.rb', line 164 def avail @avail end |
#start ⇒ Object
Returns the value of attribute start.
164 165 166 |
# File 'lib/tep/websocket/connection.rb', line 164 def start @start end |