Module: Axn::Webhooks::Handler

Defined in:
lib/axn/webhooks/handler.rb

Overview

Include in a webhook handler to get Axn plus the retry_later! contract: a RetryLater raised by the handler is treated as a FAILURE (not a reported exception), so asking the sender to redeliver never pages. Dispatch still maps it to 503 (+ Retry-After).

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
12
# File 'lib/axn/webhooks/handler.rb', line 9

def self.included(base)
  base.include(Axn)
  base.fails_on(Axn::Webhooks::RetryLater)
end