Class: Pigeon::MockProducer

Inherits:
Object
  • Object
show all
Defined in:
lib/pigeon/mock_producer.rb

Overview

Mock producer for testing

Instance Method Summary collapse

Instance Method Details

#produce_async?(_payload, **_options) ⇒ Boolean Also known as: produce_async

Returns:

  • (Boolean)


10
11
12
# File 'lib/pigeon/mock_producer.rb', line 10

def produce_async?(_payload, **_options)
  true
end

#produce_sync?(_payload, **_options) ⇒ Boolean Also known as: produce_sync

Returns:

  • (Boolean)


6
7
8
# File 'lib/pigeon/mock_producer.rb', line 6

def produce_sync?(_payload, **_options)
  true
end