Class: Mailkube::Events::WebhookStatusData

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

#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

Returns whether the endpoint is now active.

Returns:

  • (Boolean)

    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.

Returns:

  • (Boolean)

    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_reasonString

Returns why the endpoint was disabled.

Returns:

  • (String)

    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_urlString

Returns the endpoint's URL.

Returns:

  • (String)

    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.

#previousWebhookStatusPrevious

Returns the state before this change.

Returns:



85
# File 'lib/mailkube/events/payloads.rb', line 85

def previous = block(WebhookStatusPrevious, "previous")