Class: Mailkube::Events::ScheduledContext

Inherits:
Node
  • Object
show all
Defined in:
lib/mailkube/events/contexts.rb,
sig/mailkube/events/contexts.rbs

Overview

When a scheduled send is due (email.scheduled).

Unlike the engagement blocks, these keys are snake_case on the wire.

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

#batch_idString?

Returns the batch label the send was grouped under.

Returns:

  • (String, nil)

    the batch label the send was grouped under.



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

def batch_id = self["batch_id"]

#scheduled_atString

Returns when the send is due.

Returns:

  • (String)

    when the send is due.



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

def scheduled_at = self["scheduled_at"]
# @return [String, nil] the batch label the send was grouped under.