Module: NowAndLater::Runner
- Defined in:
- lib/now_and_later/runner.rb
Overview
NowAndLater::Runner Mixin shortcuts for running services namespaced under object e.g. account.run(:my_service, one: 1) = Account::MyService.now account, one: 1
Instance Method Summary collapse
-
#later(symbol, *args) ⇒ Object
run given service later.
-
#run(symbol, *args) ⇒ Object
run given service now.
Instance Method Details
#later(symbol, *args) ⇒ Object
run given service later
13 14 15 |
# File 'lib/now_and_later/runner.rb', line 13 def later(symbol,*args) service(symbol).later self,*args end |
#run(symbol, *args) ⇒ Object
run given service now
8 9 10 |
# File 'lib/now_and_later/runner.rb', line 8 def run(symbol,*args) service(symbol).now self,*args end |