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

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

Instance Attribute Summary collapse

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

#initializeObject



269
# File 'sig/courier/models/journey_node.rbs', line 269

def initialize: (

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".

Parameters:

  • value (Courier::Models::journey_conditions_field)

Returns:



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

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

#labelString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :label, String

#nodesArray<Courier::Models::JourneyNode>

Parameters:

  • value (::Array[Courier::Models::journey_node])

Returns:



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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


275
# File 'sig/courier/models/journey_node.rbs', line 275

def to_hash: -> {