Class: Mailkube::ScheduledEmailBatchCancel
- Inherits:
-
Object
- Object
- Mailkube::ScheduledEmailBatchCancel
- Defined in:
- lib/mailkube/types/scheduled_acks.rb,
sig/mailkube/types/scheduled_acks.rbs
Overview
What cancelling a whole batch reports back.
Instance Attribute Summary collapse
-
#batch_id ⇒ String
readonly
Returns the value of attribute batch_id.
-
#canceled_count ⇒ Integer
readonly
Returns the value of attribute canceled_count.
-
#object ⇒ String
readonly
Returns the value of attribute object.
Class Method Summary collapse
-
.from(payload) ⇒ ScheduledEmailBatchCancel
The model.
Instance Method Summary collapse
-
#initialize(object: "scheduled_email.batch", batch_id: "", canceled_count: 0) ⇒ ScheduledEmailBatchCancel
constructor
A new instance of ScheduledEmailBatchCancel.
Constructor Details
#initialize(object: "scheduled_email.batch", batch_id: "", canceled_count: 0) ⇒ ScheduledEmailBatchCancel
Returns a new instance of ScheduledEmailBatchCancel.
29 |
# File 'lib/mailkube/types/scheduled_acks.rb', line 29 def initialize(object: "scheduled_email.batch", batch_id: "", canceled_count: 0) = super |
Instance Attribute Details
#batch_id ⇒ String (readonly)
Returns the value of attribute batch_id.
13 14 15 |
# File 'sig/mailkube/types/scheduled_acks.rbs', line 13 def batch_id @batch_id end |
#canceled_count ⇒ Integer (readonly)
Returns the value of attribute canceled_count.
14 15 16 |
# File 'sig/mailkube/types/scheduled_acks.rbs', line 14 def canceled_count @canceled_count end |
#object ⇒ String (readonly)
Returns the value of attribute object.
12 13 14 |
# File 'sig/mailkube/types/scheduled_acks.rbs', line 12 def object @object end |
Class Method Details
.from(payload) ⇒ ScheduledEmailBatchCancel
Returns the model.
33 34 35 36 |
# File 'lib/mailkube/types/scheduled_acks.rb', line 33 def self.from(payload) new(object: payload["object"] || "scheduled_email.batch", batch_id: payload["batch_id"] || "", canceled_count: payload["canceled_count"] || 0) end |