Class: Courier::Models::JourneyThrottleDynamicNode

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

Defined Under Namespace

Modules: Scope, Type

Instance Attribute Summary collapse

Class Method 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(max_allowed:, period:, scope:, throttle_key:, type:, id: nil, conditions: nil) ⇒ Object

Some parameter documentations has been truncated, see Courier::Models::JourneyThrottleDynamicNode for more details.

Throttle the journey by a dynamic ‘throttle_key`, allowing at most `max_allowed` invocations per `period`.

Parameters:



# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 44

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



42
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 42

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

#idString?

Returns:

  • (String, nil)


34
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 34

optional :id, String

#max_allowedInteger

Returns:

  • (Integer)


9
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 9

required :max_allowed, Integer

#periodString

Returns:

  • (String)


14
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 14

required :period, String

#scopeSymbol, Courier::Models::JourneyThrottleDynamicNode::Scope



19
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 19

required :scope, enum: -> { Courier::JourneyThrottleDynamicNode::Scope }

#throttle_keyString

Returns:

  • (String)


24
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 24

required :throttle_key, String

#typeSymbol, Courier::Models::JourneyThrottleDynamicNode::Type



29
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 29

required :type, enum: -> { Courier::JourneyThrottleDynamicNode::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 71