Module: Courier::Models::NotificationTemplateAlias
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/courier/models/notification_template_alias.rb,
sig/courier/models/notification_template_alias.rbs
Overview
A template's send-time alias as returned by a read, omitted entirely when it has none. Usually a single string; an array for a template that resolves from several aliases, which writes through this API can no longer produce — only templates predating that restriction, or aliases attached outside this API, hold more than one.
Constant Summary collapse
- StringArray =
Courier::Internal::Type::ArrayOf[String]
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.variants ⇒ Array(String, Array<String>)
|
|
# File 'lib/courier/models/notification_template_alias.rb', line 17
|
Instance Method Details
#self?.variants ⇒ ::Array[Courier::Models::notification_template_alias]
8 |
# File 'sig/courier/models/notification_template_alias.rbs', line 8
def self?.variants: -> ::Array[Courier::Models::notification_template_alias]
|