Class: Courier::Models::TopicDigestResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::TopicDigestResponse
- Defined in:
- lib/courier/models/topic_digest_response.rb,
sig/courier/models/topic_digest_response.rbs
Instance Attribute Summary collapse
-
#audience_id ⇒ String?
The audience the digest is scoped to, when set.
-
#categories ⇒ Array<Courier::Models::TopicDigestCategory>
Retention rules per category key.
-
#created ⇒ String?
ISO-8601 timestamp of when the digest was configured.
-
#schedules ⇒ Array<Courier::Models::TopicDigestScheduleResponse>
The digest's delivery cadences, each with its server-assigned
schedule_id. -
#template_id ⇒ String
The notification template that renders the digest.
-
#trigger_empty ⇒ Boolean?
Whether the digest is delivered even when nothing was collected.
-
#updated ⇒ String?
ISO-8601 timestamp of the last update.
Instance Method Summary collapse
-
#initialize(categories:, schedules:, template_id:, audience_id: nil, created: nil, trigger_empty: nil, updated: nil) ⇒ Object
constructor
A topic's digest configuration.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(categories:, schedules:, template_id:, audience_id: nil, created: nil, trigger_empty: nil, updated: nil) ⇒ Object
A topic's digest configuration.
|
|
# File 'lib/courier/models/topic_digest_response.rb', line 48
|
Instance Attribute Details
#audience_id ⇒ String?
The audience the digest is scoped to, when set.
28 |
# File 'lib/courier/models/topic_digest_response.rb', line 28 optional :audience_id, String |
#categories ⇒ Array<Courier::Models::TopicDigestCategory>
Retention rules per category key.
10 |
# File 'lib/courier/models/topic_digest_response.rb', line 10 required :categories, -> { Courier::Internal::Type::ArrayOf[Courier::TopicDigestCategory] } |
#created ⇒ String?
ISO-8601 timestamp of when the digest was configured.
34 |
# File 'lib/courier/models/topic_digest_response.rb', line 34 optional :created, String |
#schedules ⇒ Array<Courier::Models::TopicDigestScheduleResponse>
The digest's delivery cadences, each with its server-assigned schedule_id.
16 |
# File 'lib/courier/models/topic_digest_response.rb', line 16 required :schedules, -> { Courier::Internal::Type::ArrayOf[Courier::TopicDigestScheduleResponse] } |
#template_id ⇒ String
The notification template that renders the digest.
22 |
# File 'lib/courier/models/topic_digest_response.rb', line 22 required :template_id, String |
#trigger_empty ⇒ Boolean?
Whether the digest is delivered even when nothing was collected.
40 |
# File 'lib/courier/models/topic_digest_response.rb', line 40 optional :trigger_empty, Courier::Internal::Type::Boolean |
#updated ⇒ String?
ISO-8601 timestamp of the last update.
46 |
# File 'lib/courier/models/topic_digest_response.rb', line 46 optional :updated, String |
Instance Method Details
#to_hash ⇒ {
47 |
# File 'sig/courier/models/topic_digest_response.rbs', line 47
def to_hash: -> {
|