Class: Courier::Models::ElementWithChecksums

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/element_with_checksums.rb

Defined Under Namespace

Classes: Locale

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Courier::Internal::Type::BaseModel

Instance Attribute Details

#checksumString

MD5 hash of translatable content.

Returns:

  • (String)


10
# File 'lib/courier/models/element_with_checksums.rb', line 10

required :checksum, String

#elementsArray<Courier::Models::ElementWithChecksums>?

Nested child elements (for group-type elements).

Returns:



27
# File 'lib/courier/models/element_with_checksums.rb', line 27

optional :elements, -> { Courier::Internal::Type::ArrayOf[Courier::ElementWithChecksums] }

#idString?

Returns:

  • (String, nil)


21
# File 'lib/courier/models/element_with_checksums.rb', line 21

optional :id, String

#localesHash{Symbol=>Courier::Models::ElementWithChecksums::Locale}?

Locale-specific content with checksums.

Returns:



33
# File 'lib/courier/models/element_with_checksums.rb', line 33

optional :locales, -> { Courier::Internal::Type::HashOf[Courier::ElementWithChecksums::Locale] }

#typeString

Element type (text, meta, action, etc.).

Returns:

  • (String)


16
# File 'lib/courier/models/element_with_checksums.rb', line 16

required :type, String