Class: Courier::Models::JourneyNode::JourneyBranchNode::Path

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

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

#conditionsArray<String>, ...

Condition spec for a journey node. Accepts a single condition atom, an AND/OR group, or an AND/OR nested group. Omit the ‘conditions` property entirely to express “no conditions”.



101
# File 'lib/courier/models/journey_node.rb', line 101

required :conditions, union: -> { Courier::JourneyConditionsField }

#labelString?

Returns:

  • (String, nil)


111
# File 'lib/courier/models/journey_node.rb', line 111

optional :label, String

#nodesArray<Courier::Models::JourneyNode>

Returns:



106
# File 'lib/courier/models/journey_node.rb', line 106

required :nodes, -> { Courier::Internal::Type::ArrayOf[union: Courier::JourneyNode] }