Class: Mailkube::Events::WebhookStatusData
- Defined in:
- lib/mailkube/events/payloads.rb,
sig/mailkube/events/payloads.rbs
Overview
The data of webhook.status: an endpoint's new state, and its previous one.
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#active? ⇒ Boolean
Whether the endpoint is now active.
-
#deleted? ⇒ Boolean
Whether the endpoint is now deleted.
-
#disabled_reason ⇒ String
Why the endpoint was disabled.
-
#endpoint_url ⇒ String
The endpoint's URL.
-
#previous ⇒ WebhookStatusPrevious
The state before this change.
Methods inherited from Node
#==, #[], #block, #hash, #initialize, #to_h
Constructor Details
This class inherits a constructor from Mailkube::Events::Node
Instance Method Details
#active? ⇒ Boolean
Returns whether the endpoint is now active.
79 80 |
# File 'lib/mailkube/events/payloads.rb', line 79 def active? = self["is_active"] # @return [Boolean] whether the endpoint is now deleted. |
#deleted? ⇒ Boolean
Returns whether the endpoint is now deleted.
81 82 |
# File 'lib/mailkube/events/payloads.rb', line 81 def deleted? = self["is_deleted"] # @return [String] why the endpoint was disabled. |
#disabled_reason ⇒ String
Returns why the endpoint was disabled.
83 84 |
# File 'lib/mailkube/events/payloads.rb', line 83 def disabled_reason = self["disabled_reason"] # @return [WebhookStatusPrevious] the state before this change. |
#endpoint_url ⇒ String
Returns the endpoint's URL.
77 78 |
# File 'lib/mailkube/events/payloads.rb', line 77 def endpoint_url = self["endpoint_url"] # @return [Boolean] whether the endpoint is now active. |
#previous ⇒ WebhookStatusPrevious
Returns the state before this change.
85 |
# File 'lib/mailkube/events/payloads.rb', line 85 def previous = block(WebhookStatusPrevious, "previous") |