Class: Courier::Models::JourneyConditionGroup

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

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

#initialize(and_: nil, or_: nil) ⇒ Object

A leaf condition group. Exactly one of ‘AND` or `OR` must be present at runtime; each is a list of `JourneyConditionAtom` tuples.

Parameters:

  • and_ (Array<Array<String>>) (defaults to: nil)
  • or_ (Array<Array<String>>) (defaults to: nil)


# File 'lib/courier/models/journey_condition_group.rb', line 18

Instance Attribute Details

#and_Array<Array<String>>?

Returns:

  • (Array<Array<String>>, nil)


9
10
11
# File 'lib/courier/models/journey_condition_group.rb', line 9

optional :and_,
Courier::Internal::Type::ArrayOf[Courier::Internal::Type::ArrayOf[String]],
api_name: :AND

#or_Array<Array<String>>?

Returns:

  • (Array<Array<String>>, nil)


16
# File 'lib/courier/models/journey_condition_group.rb', line 16

optional :or_, Courier::Internal::Type::ArrayOf[Courier::Internal::Type::ArrayOf[String]], api_name: :OR