Class: Distribot::FlowCreatedHandler
- Inherits:
-
Object
- Object
- Distribot::FlowCreatedHandler
show all
- Includes:
- Handler
- Defined in:
- lib/distribot/flow_created_handler.rb
Instance Attribute Summary
Attributes included from Handler
#consumers, #queue_name
Instance Method Summary
collapse
Methods included from Handler
handler_for, included, #initialize, queue_for
Instance Method Details
#callback(message) ⇒ Object
7
8
9
10
|
# File 'lib/distribot/flow_created_handler.rb', line 7
def callback(message)
flow = Distribot::Flow.find(message[:flow_id])
flow.transition_to! flow.next_phase
end
|