Class: Estore::Commands::LiveSubscription

Inherits:
Object
  • Object
show all
Includes:
Command, Subscription
Defined in:
lib/estore/commands/subscriptions/live.rb

Instance Attribute Summary

Attributes included from Command

#uuid

Instance Method Summary collapse

Methods included from Subscription

#call, #close, #enqueue, #initialize, #on_event, #start, #worker_loop

Methods included from Command

#handle, #initialize, #promise, #register!, #reject!, #remove!, #write

Instance Method Details

#event_appeared(response) ⇒ Object



10
11
12
# File 'lib/estore/commands/subscriptions/live.rb', line 10

def event_appeared(response)
  enqueue response.event
end