Module: Courier::Models::ElementalNodeNonChannel

Extended by:
Internal::Type::Union
Defined in:
lib/courier/models/elemental_node_non_channel.rb,
sig/courier/models/elemental_node_non_channel.rbs

Overview

Any Elemental node except a channel block. Channel elements are only valid as top-level elements, so the elements nested inside one can never be another channel. Keeping this union channel-free also keeps the schema acyclic; a recursive $ref here breaks the generated Python models.

Defined Under Namespace

Classes: UnionMember0, UnionMember1, UnionMember2, UnionMember3, UnionMember4, UnionMember5, UnionMember6

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

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_node_non_channel.rb', line 49

Instance Method Details

#self?.variants ⇒ ::Array[Courier::Models::elemental_node_non_channel]

Returns:

  • (::Array[Courier::Models::elemental_node_non_channel])


218
# File 'sig/courier/models/elemental_node_non_channel.rbs', line 218

def self?.variants: -> ::Array[Courier::Models::elemental_node_non_channel]