Class: Privy::Resources::Webhooks
- Inherits:
-
Object
- Object
- Privy::Resources::Webhooks
- Defined in:
- lib/privy/resources/webhooks.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Webhooks
constructor
private
A new instance of Webhooks.
- #unsafe_unwrap(payload) ⇒ Privy::Models::IntentAuthorizedWebhookPayload, ...
Constructor Details
#initialize(client:) ⇒ Webhooks
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Webhooks.
17 18 19 |
# File 'lib/privy/resources/webhooks.rb', line 17 def initialize(client:) @client = client end |
Instance Method Details
#unsafe_unwrap(payload) ⇒ Privy::Models::IntentAuthorizedWebhookPayload, ...
9 10 11 12 |
# File 'lib/privy/resources/webhooks.rb', line 9 def unsafe_unwrap(payload) parsed = JSON.parse(payload, symbolize_names: true) Privy::Internal::Type::Converter.coerce(Privy::Models::UnsafeUnwrapWebhookEvent, parsed) end |