Class: Courier::Models::ElementWithChecksums
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::ElementWithChecksums
- Defined in:
- lib/courier/models/element_with_checksums.rb
Defined Under Namespace
Classes: Locale
Instance Attribute Summary collapse
-
#checksum ⇒ String
MD5 hash of translatable content.
-
#elements ⇒ Array<Courier::Models::ElementWithChecksums>?
Nested child elements (for group-type elements).
- #id ⇒ String?
-
#locales ⇒ Hash{Symbol=>Courier::Models::ElementWithChecksums::Locale}?
Locale-specific content with checksums.
-
#type ⇒ String
Element type (text, meta, action, etc.).
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
#checksum ⇒ String
MD5 hash of translatable content.
10 |
# File 'lib/courier/models/element_with_checksums.rb', line 10 required :checksum, String |
#elements ⇒ Array<Courier::Models::ElementWithChecksums>?
Nested child elements (for group-type elements).
27 |
# File 'lib/courier/models/element_with_checksums.rb', line 27 optional :elements, -> { Courier::Internal::Type::ArrayOf[Courier::ElementWithChecksums] } |
#id ⇒ String?
21 |
# File 'lib/courier/models/element_with_checksums.rb', line 21 optional :id, String |
#locales ⇒ Hash{Symbol=>Courier::Models::ElementWithChecksums::Locale}?
Locale-specific content with checksums.
33 |
# File 'lib/courier/models/element_with_checksums.rb', line 33 optional :locales, -> { Courier::Internal::Type::HashOf[Courier::ElementWithChecksums::Locale] } |
#type ⇒ String
Element type (text, meta, action, etc.).
16 |
# File 'lib/courier/models/element_with_checksums.rb', line 16 required :type, String |