Class: PubSubModelSync::MockRabbitService::MockChannel
- Inherits:
-
Object
- Object
- PubSubModelSync::MockRabbitService::MockChannel
- Defined in:
- lib/pub_sub_model_sync/mock_rabbit_service.rb
Instance Method Summary collapse
- #ack(_delivery_tag) ⇒ Object
- #close ⇒ Object
- #queue(*_args) ⇒ Object (also: #fanout)
- #topic(*_args) ⇒ Object
Instance Method Details
#ack(_delivery_tag) ⇒ Object
47 48 49 |
# File 'lib/pub_sub_model_sync/mock_rabbit_service.rb', line 47 def ack(_delivery_tag) true end |
#close ⇒ Object
43 44 45 |
# File 'lib/pub_sub_model_sync/mock_rabbit_service.rb', line 43 def close true end |
#queue(*_args) ⇒ Object Also known as: fanout
34 35 36 |
# File 'lib/pub_sub_model_sync/mock_rabbit_service.rb', line 34 def queue(*_args) @queue ||= MockQueue.new end |
#topic(*_args) ⇒ Object
39 40 41 |
# File 'lib/pub_sub_model_sync/mock_rabbit_service.rb', line 39 def topic(*_args) @topic ||= MockTopic.new end |