Class: Mailkube::Events::DomainStatusData
- Defined in:
- lib/mailkube/events/payloads.rb,
sig/mailkube/events/payloads.rbs
Overview
The data of domain.status: a sending domain's new state, and its previous one.
Not a MessageContext: a domain lifecycle event is about the domain, not about a message.
status and onboarding_state are server-controlled strings, not enums.
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#domain ⇒ String
The domain.
-
#onboarding_state ⇒ String
The new onboarding state.
-
#previous ⇒ DomainStatusPrevious
The state before this change.
-
#status ⇒ String
The new status.
Methods inherited from Node
#==, #[], #block, #hash, #initialize, #to_h
Constructor Details
This class inherits a constructor from Mailkube::Events::Node
Instance Method Details
#domain ⇒ String
Returns the domain.
65 66 |
# File 'lib/mailkube/events/payloads.rb', line 65 def domain = self["domain"] # @return [String] the new status. |
#onboarding_state ⇒ String
Returns the new onboarding state.
69 70 |
# File 'lib/mailkube/events/payloads.rb', line 69 def onboarding_state = self["onboarding_state"] # @return [DomainStatusPrevious] the state before this change. |
#previous ⇒ DomainStatusPrevious
Returns the state before this change.
71 |
# File 'lib/mailkube/events/payloads.rb', line 71 def previous = block(DomainStatusPrevious, "previous") |
#status ⇒ String
Returns the new status.
67 68 |
# File 'lib/mailkube/events/payloads.rb', line 67 def status = self["status"] # @return [String] the new onboarding state. |