Class: Mailkube::ScheduledEmailBatchUpdate
- Inherits:
-
Object
- Object
- Mailkube::ScheduledEmailBatchUpdate
- Defined in:
- lib/mailkube/types/scheduled_acks.rb,
sig/mailkube/types/scheduled_acks.rbs
Overview
What rescheduling a whole batch reports back.
Instance Attribute Summary collapse
-
#batch_id ⇒ String
readonly
Returns the value of attribute batch_id.
-
#object ⇒ String
readonly
Returns the value of attribute object.
-
#rescheduled_count ⇒ Integer
readonly
Returns the value of attribute rescheduled_count.
-
#scheduled_at ⇒ String?
readonly
Returns the value of attribute scheduled_at.
Class Method Summary collapse
-
.from(payload) ⇒ ScheduledEmailBatchUpdate
The model.
Instance Method Summary collapse
-
#initialize(object: "scheduled_email.batch", batch_id: "", rescheduled_count: 0, scheduled_at: nil) ⇒ ScheduledEmailBatchUpdate
constructor
A new instance of ScheduledEmailBatchUpdate.
Constructor Details
#initialize(object: "scheduled_email.batch", batch_id: "", rescheduled_count: 0, scheduled_at: nil) ⇒ ScheduledEmailBatchUpdate
Returns a new instance of ScheduledEmailBatchUpdate.
46 47 48 |
# File 'lib/mailkube/types/scheduled_acks.rb', line 46 def initialize(object: "scheduled_email.batch", batch_id: "", rescheduled_count: 0, scheduled_at: nil) super end |
Instance Attribute Details
#batch_id ⇒ String (readonly)
Returns the value of attribute batch_id.
22 23 24 |
# File 'sig/mailkube/types/scheduled_acks.rbs', line 22 def batch_id @batch_id end |
#object ⇒ String (readonly)
Returns the value of attribute object.
21 22 23 |
# File 'sig/mailkube/types/scheduled_acks.rbs', line 21 def object @object end |
#rescheduled_count ⇒ Integer (readonly)
Returns the value of attribute rescheduled_count.
23 24 25 |
# File 'sig/mailkube/types/scheduled_acks.rbs', line 23 def rescheduled_count @rescheduled_count end |
#scheduled_at ⇒ String? (readonly)
Returns the value of attribute scheduled_at.
24 25 26 |
# File 'sig/mailkube/types/scheduled_acks.rbs', line 24 def scheduled_at @scheduled_at end |
Class Method Details
.from(payload) ⇒ ScheduledEmailBatchUpdate
Returns the model.
52 53 54 55 |
# File 'lib/mailkube/types/scheduled_acks.rb', line 52 def self.from(payload) new(object: payload["object"] || "scheduled_email.batch", batch_id: payload["batch_id"] || "", rescheduled_count: payload["rescheduled_count"] || 0, scheduled_at: payload["scheduled_at"]) end |