Exception: Pago::WebhookUnknownTypeError

Inherits:
WebhookError show all
Defined in:
lib/pago/webhooks.rb

Overview

Raised when a verified webhook type is unknown to this SDK version.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeString? (readonly)

Returns the event type carried by the payload.

Returns:

  • (String, nil)

    the event type carried by the payload.



26
27
28
# File 'lib/pago/webhooks.rb', line 26

def event_type
  @event_type
end