Class: Mailkube::Events::WebhookStatusPrevious

Inherits:
Node
  • Object
show all
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

#raw

Instance Method Summary collapse

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.

Returns:

  • (Boolean)

    whether the endpoint was active.



131
132
# File 'lib/mailkube/events/contexts.rb', line 131

def active? = self["is_active"]
# @return [Boolean] whether the endpoint was deleted.

#deleted?Boolean

Returns whether the endpoint was deleted.

Returns:

  • (Boolean)

    whether the endpoint was deleted.



133
134
# File 'lib/mailkube/events/contexts.rb', line 133

def deleted? = self["is_deleted"]
# @return [String] why the endpoint was disabled, e.g. `none`, `user`, `low_quality`.

#disabled_reasonString

Returns why the endpoint was disabled, e.g. none, user, low_quality.

Returns:

  • (String)

    why the endpoint was disabled, e.g. none, user, low_quality.



135
# File 'lib/mailkube/events/contexts.rb', line 135

def disabled_reason = self["disabled_reason"]