Class: Courier::Models::JourneyConditionGroup
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::JourneyConditionGroup
- Defined in:
- lib/courier/models/journey_condition_group.rb,
sig/courier/models/journey_condition_group.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(and_: nil, or_: nil) ⇒ Object
constructor
A leaf condition group.
- #to_hash ⇒ {
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.
|
|
# File 'lib/courier/models/journey_condition_group.rb', line 18
|
Instance Attribute Details
#and_ ⇒ Array<Array<String>>?
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>>?
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 |
Instance Method Details
#to_hash ⇒ {
27 |
# File 'sig/courier/models/journey_condition_group.rbs', line 27 def to_hash: -> { |