Exception: Pago::WebhookUnknownTypeError
- Inherits:
-
WebhookError
- Object
- StandardError
- Error
- WebhookError
- Pago::WebhookUnknownTypeError
- Defined in:
- lib/pago/webhooks.rb
Overview
Raised when a verified webhook type is unknown to this SDK version.
Instance Attribute Summary collapse
-
#event_type ⇒ String?
readonly
The event type carried by the payload.
Instance Method Summary collapse
-
#initialize(event_type) ⇒ WebhookUnknownTypeError
constructor
A new instance of WebhookUnknownTypeError.
Constructor Details
#initialize(event_type) ⇒ WebhookUnknownTypeError
Returns a new instance of WebhookUnknownTypeError.
28 29 30 31 |
# File 'lib/pago/webhooks.rb', line 28 def initialize(event_type) @event_type = event_type super("Unknown webhook event type: #{event_type.inspect}") end |
Instance Attribute Details
#event_type ⇒ String? (readonly)
Returns the event type carried by the payload.
26 27 28 |
# File 'lib/pago/webhooks.rb', line 26 def event_type @event_type end |