Module: Landable::EventPublisher
- Defined in:
- lib/landable/traffic/event_publisher.rb
Class Method Summary collapse
Class Method Details
.publish(page_view) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/landable/traffic/event_publisher.rb', line 6 def publish(page_view) @configuration = Landable.configuration.amqp_configuration return unless enabled? @event_type = event_type(page_view) return unless @event_type @page_view = page_view @visit = page_view.visit messaging_service.publish() end |