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.

See Also:

  • Courier::Models::ElementalContent#scope

Constant Summary collapse

DEFAULT =

Returns:

  • (:default)
:default
STRICT =

Returns:

  • (: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>

Returns:

  • (Array<Symbol>)


# File 'lib/courier/models/elemental_content.rb', line 54