Class: MultipleMan::SeederListener
- Defined in:
- lib/multiple_man/seeder_listener.rb
Instance Attribute Summary
Attributes inherited from Listener
Instance Method Summary collapse
-
#operation(delivery_info) ⇒ Object
seeds should only ever be a create.
- #queue ⇒ Object
- #routing_key ⇒ Object
Methods inherited from Listener
#handle_error, #init_connection, #initialize, #listen, #process_message, start
Constructor Details
This class inherits a constructor from MultipleMan::Listener
Instance Method Details
#operation(delivery_info) ⇒ Object
seeds should only ever be a create
8 9 10 |
# File 'lib/multiple_man/seeder_listener.rb', line 8 def operation(delivery_info) "create" end |
#queue ⇒ Object
12 13 14 |
# File 'lib/multiple_man/seeder_listener.rb', line 12 def queue connection.queue(subscription.queue_name + ".seed", auto_delete: true) end |
#routing_key ⇒ Object
3 4 5 |
# File 'lib/multiple_man/seeder_listener.rb', line 3 def routing_key subscription.routing_key(:seed) end |