Class: Axn::Webhooks::Signature::Check
- Inherits:
-
Data
- Object
- Data
- Axn::Webhooks::Signature::Check
- Defined in:
- lib/axn/webhooks/signature.rb
Overview
The outcome of a signature check, with the CAUSE of a rejection named. Deliberately not
called Result — Axn::Result already owns that word in this codebase's vocabulary.
reason is one of REASONS (nil when ok). skew is set only for :replay_window, in seconds,
signed (positive = the timestamp is in the past). suggested_unit is set only when a
pinned unit: is what pushed the timestamp out of the window (see .mismatched_unit,
PRO-3142) — nil for a genuine replay, which is what separates the Lob outage (os-app#5128)
from a real stale delivery. Under the default unit: AUTO it is nil essentially always.
Instance Attribute Summary collapse
-
#ok ⇒ Object
readonly
Returns the value of attribute ok.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#skew ⇒ Object
readonly
Returns the value of attribute skew.
-
#suggested_unit ⇒ Object
readonly
Returns the value of attribute suggested_unit.
Instance Method Summary collapse
Instance Attribute Details
#ok ⇒ Object (readonly)
Returns the value of attribute ok
48 49 50 |
# File 'lib/axn/webhooks/signature.rb', line 48 def ok @ok end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
48 49 50 |
# File 'lib/axn/webhooks/signature.rb', line 48 def reason @reason end |
#skew ⇒ Object (readonly)
Returns the value of attribute skew
48 49 50 |
# File 'lib/axn/webhooks/signature.rb', line 48 def skew @skew end |
#suggested_unit ⇒ Object (readonly)
Returns the value of attribute suggested_unit
48 49 50 |
# File 'lib/axn/webhooks/signature.rb', line 48 def suggested_unit @suggested_unit end |
Instance Method Details
#ok? ⇒ Boolean
49 |
# File 'lib/axn/webhooks/signature.rb', line 49 def ok? = ok |