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