Class: Nombaone::WebhookEvent
- Inherits:
-
NombaObject
- Object
- NombaObject
- Nombaone::WebhookEvent
- Defined in:
- lib/nombaone/webhook_event.rb,
sig/nombaone/webhooks.rbs
Overview
A verified webhook delivery. It is a NombaObject, so every field reads idiomatically:
event.type # => "invoice.payment_failed"
event.event.id # => "nbo…evt" — DEDUPE on this
event.data.reason # => "insufficient_funds" (typed payloads narrow with the type)
Delivery is at-least-once — after verification, dedupe on event.event.id
before acting. The event block is always present: if a delivery arrives in
the older flat shape (top-level id/type/created_at), it is synthesized
so dedupe still works.
Instance Attribute Summary
Attributes inherited from NombaObject
Method Summary
Methods inherited from NombaObject
#==, #[], #dig, #hash, #initialize, #inspect, #key?, #keys, #method_missing, #respond_to_missing?, #to_h
Constructor Details
This class inherits a constructor from Nombaone::NombaObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Nombaone::NombaObject