Module: Courier::Models::ElementalContent::Scope
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/courier/models/elemental_content.rb,
sig/courier/models/elemental_content.rbs
Overview
How template variables read the data sent with the message. Under strict, data
fields are read only through the data. prefix, as in {{data.name}}. Under
default, data is spread onto the root, so {{name}} resolves and
{{data.name}} renders as an empty string. Templates saved in Design Studio are
strict. When omitted, the content is default. A write that replaces a
template's content resets it to default unless the request sends scope
again.
Constant Summary collapse
- DEFAULT =
:default- STRICT =
:strict
Class Method Summary collapse
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type
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
.values ⇒ Array<Symbol>
|
|
# File 'lib/courier/models/elemental_content.rb', line 54
|