Class: Courier::Models::ElementalBaseNode
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::ElementalBaseNode
- Defined in:
- lib/courier/models/elemental_base_node.rb,
sig/courier/models/elemental_base_node.rbs
Direct Known Subclasses
ElementalActionNode, ElementalChannelNode, ElementalDividerNode, ElementalHTMLNode, ElementalImageNode, ElementalMetaNode, ElementalQuoteNode, ElementalTextNode
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(channels: nil, if_: nil, loop_: nil, ref: nil) ⇒ ElementalBaseNode
constructor
A new instance of ElementalBaseNode.
- #to_hash ⇒ { channels: ::Array[String]?, if_: String?, loop_: String?, ref: String? }
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(channels: nil, if_: nil, loop_: nil, ref: nil) ⇒ ElementalBaseNode
Returns a new instance of ElementalBaseNode.
|
|
# File 'lib/courier/models/elemental_base_node.rb', line 26
|
Instance Attribute Details
#channels ⇒ Array<String>?
9 |
# File 'lib/courier/models/elemental_base_node.rb', line 9 optional :channels, Courier::Internal::Type::ArrayOf[String], nil?: true |
#if_ ⇒ String?
14 |
# File 'lib/courier/models/elemental_base_node.rb', line 14 optional :if_, String, api_name: :if, nil?: true |
#loop_ ⇒ String?
19 |
# File 'lib/courier/models/elemental_base_node.rb', line 19 optional :loop_, String, api_name: :loop, nil?: true |
#ref ⇒ String?
24 |
# File 'lib/courier/models/elemental_base_node.rb', line 24 optional :ref, String, nil?: true |
Instance Method Details
#to_hash ⇒ { channels: ::Array[String]?, if_: String?, loop_: String?, ref: String? }
22 23 24 25 26 27 |
# File 'sig/courier/models/elemental_base_node.rbs', line 22
def to_hash: -> {
channels: ::Array[String]?,
if_: String?,
loop_: String?,
ref: String?
}
|