Class: SseCable::MessageQueue
- Inherits:
-
Object
- Object
- SseCable::MessageQueue
- Defined in:
- lib/sse_cable/message_queue.rb
Instance Method Summary collapse
- #dequeue ⇒ Object
- #enqueue(event) ⇒ Object
-
#initialize ⇒ MessageQueue
constructor
A new instance of MessageQueue.
Constructor Details
#initialize ⇒ MessageQueue
Returns a new instance of MessageQueue.
5 6 7 |
# File 'lib/sse_cable/message_queue.rb', line 5 def initialize # Initialize message queue end |
Instance Method Details
#dequeue ⇒ Object
13 14 15 |
# File 'lib/sse_cable/message_queue.rb', line 13 def dequeue # Dequeue the next event from the message queue end |
#enqueue(event) ⇒ Object
9 10 11 |
# File 'lib/sse_cable/message_queue.rb', line 9 def enqueue(event) # Enqueue an event in the message queue end |