Class: Outboxable::PublishingManager

Inherits:
Object
  • Object
show all
Defined in:
lib/outboxable/publishing_manager.rb

Class Method Summary collapse

Class Method Details

.publish(resource:) ⇒ Object



3
4
5
6
7
8
# File 'lib/outboxable/publishing_manager.rb', line 3

def self.publish(resource:)
  case Outboxable.configuration.message_broker
  when :rabbitmq
    Outboxable::RabbitMq::Publisher.new(resource:).publish
  end
end