Class: DispatchRider::Runner
- Inherits:
-
Object
- Object
- DispatchRider::Runner
- Defined in:
- lib/dispatch-rider/runner.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Runner
constructor
A new instance of Runner.
- #process ⇒ Object
Constructor Details
#initialize ⇒ Runner
Returns a new instance of Runner.
8 9 10 11 12 13 |
# File 'lib/dispatch-rider/runner.rb', line 8 def initialize callbacks.invoke(:initialize) do ready set_queue_from_config end end |
Class Method Details
.run ⇒ Object
4 5 6 |
# File 'lib/dispatch-rider/runner.rb', line 4 def self.run new.process end |
Instance Method Details
#process ⇒ Object
16 17 18 19 20 21 |
# File 'lib/dispatch-rider/runner.rb', line 16 def process callbacks.invoke(:process) do puts "Running..." @subscriber.process end end |