Class: Imagekitio::Resources::Webhooks
- Inherits:
-
Object
- Object
- Imagekitio::Resources::Webhooks
- Defined in:
- lib/imagekitio/resources/webhooks.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Webhooks
constructor
private
A new instance of Webhooks.
- #unsafe_unwrap(payload) ⇒ Imagekitio::Models::VideoTransformationAcceptedEvent, ...
- #unwrap(payload) ⇒ Imagekitio::Models::VideoTransformationAcceptedEvent, ...
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.
25 26 27 |
# File 'lib/imagekitio/resources/webhooks.rb', line 25 def initialize(client:) @client = client end |
Instance Method Details
#unsafe_unwrap(payload) ⇒ Imagekitio::Models::VideoTransformationAcceptedEvent, ...
9 10 11 12 |
# File 'lib/imagekitio/resources/webhooks.rb', line 9 def unsafe_unwrap(payload) parsed = JSON.parse(payload, symbolize_names: true) Imagekitio::Internal::Type::Converter.coerce(Imagekitio::Models::UnsafeUnwrapWebhookEvent, parsed) end |
#unwrap(payload) ⇒ Imagekitio::Models::VideoTransformationAcceptedEvent, ...
17 18 19 20 |
# File 'lib/imagekitio/resources/webhooks.rb', line 17 def unwrap(payload) parsed = JSON.parse(payload, symbolize_names: true) Imagekitio::Internal::Type::Converter.coerce(Imagekitio::Models::UnwrapWebhookEvent, parsed) end |