Class: Mailkube::Events::WebhookStatusPrevious
- Defined in:
- lib/mailkube/events/contexts.rb,
sig/mailkube/events/contexts.rbs
Overview
A webhook endpoint's state before a webhook.status change.
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#active? ⇒ Boolean
Spelled
active?rather thanis_active: Ruby's predicate convention. -
#deleted? ⇒ Boolean
Whether the endpoint was deleted.
-
#disabled_reason ⇒ String
Why the endpoint was disabled, e.g.
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
Spelled active? rather than is_active: Ruby's predicate convention. The wire key stays
is_active, and Node#[] reaches it under that name.
122 123 |
# File 'lib/mailkube/events/contexts.rb', line 122 def active? = self["is_active"] # @return [Boolean] whether the endpoint was deleted. |
#deleted? ⇒ Boolean
Returns whether the endpoint was deleted.
124 125 |
# File 'lib/mailkube/events/contexts.rb', line 124 def deleted? = self["is_deleted"] # @return [String] why the endpoint was disabled, e.g. `none`, `user`, `low_quality`. |
#disabled_reason ⇒ String
Returns why the endpoint was disabled, e.g. none, user, low_quality.
126 |
# File 'lib/mailkube/events/contexts.rb', line 126 def disabled_reason = self["disabled_reason"] |