Class: Trycourier::Models::ElementalContent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Trycourier::Models::ElementalContent
- Defined in:
- lib/trycourier/models/elemental_content.rb
Instance Attribute Summary collapse
- #brand ⇒ String?
- #elements ⇒ Array<Trycourier::Models::ElementalTextNodeWithType, Trycourier::Models::ElementalMetaNodeWithType, Trycourier::Models::ElementalChannelNodeWithType, Trycourier::Models::ElementalImageNodeWithType, Trycourier::Models::ElementalActionNodeWithType, Trycourier::Models::ElementalDividerNodeWithType, Trycourier::Models::ElementalQuoteNodeWithType>
-
#version ⇒ String
For example, “2022-01-01”.
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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
#initialize(elements: , version: , brand: nil) ⇒ Object
|
|
# File 'lib/trycourier/models/elemental_content.rb', line 22
|
Instance Attribute Details
#brand ⇒ String?
20 |
# File 'lib/trycourier/models/elemental_content.rb', line 20 optional :brand, String, nil?: true |
#elements ⇒ Array<Trycourier::Models::ElementalTextNodeWithType, Trycourier::Models::ElementalMetaNodeWithType, Trycourier::Models::ElementalChannelNodeWithType, Trycourier::Models::ElementalImageNodeWithType, Trycourier::Models::ElementalActionNodeWithType, Trycourier::Models::ElementalDividerNodeWithType, Trycourier::Models::ElementalQuoteNodeWithType>
9 |
# File 'lib/trycourier/models/elemental_content.rb', line 9 required :elements, -> { Trycourier::Internal::Type::ArrayOf[union: Trycourier::ElementalNode] } |
#version ⇒ String
For example, “2022-01-01”
15 |
# File 'lib/trycourier/models/elemental_content.rb', line 15 required :version, String |