class Estore::Commands::Ping
Public Instance Methods
call()
click to toggle source
# File lib/estore/commands/ping.rb, line 6 def call register! write('Ping') promise end
handle(*)
click to toggle source
# File lib/estore/commands/ping.rb, line 12 def handle(*) remove! promise.fulfill('Pong') end