Class: Courier::Models::JourneyThrottleDynamicNode
Defined Under Namespace
Modules: Scope, Type
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#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.
|
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 44
|
Instance Attribute Details
#conditions ⇒ Array<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 }
|
#id ⇒ String?
34
|
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 34
optional :id, String
|
#max_allowed ⇒ Integer
9
|
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 9
required :max_allowed, Integer
|
#period ⇒ String
14
|
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 14
required :period, String
|
19
|
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 19
required :scope, enum: -> { Courier::JourneyThrottleDynamicNode::Scope }
|
#throttle_key ⇒ String
24
|
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 24
required :throttle_key, String
|
29
|
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 29
required :type, enum: -> { Courier::JourneyThrottleDynamicNode::Type }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/courier/models/journey_throttle_dynamic_node.rb', line 71
|
Instance Method Details
#to_hash ⇒ {
45
|
# File 'sig/courier/models/journey_throttle_dynamic_node.rbs', line 45
def to_hash: -> {
|