Module: Lepus::Web::HandlerExtensions
- Included in:
- Consumers::Handler
- Defined in:
- lib/lepus/web.rb
Overview
Web-specific handler extensions. Adds per-consumer stats recording on message delivery outcomes.
Instance Attribute Summary collapse
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Method Summary collapse
Instance Attribute Details
#stats ⇒ Object
Returns the value of attribute stats.
50 51 52 |
# File 'lib/lepus/web.rb', line 50 def stats @stats end |
Instance Method Details
#process_delivery(delivery_info, metadata, payload) ⇒ Object
52 53 54 |
# File 'lib/lepus/web.rb', line 52 def process_delivery(delivery_info, , payload) super.tap { |result| record_stats(result) } end |