Class: Courier::Models::JourneyThrottleStaticNode
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:, type:, id: nil, conditions: nil) ⇒ Object
Some parameter documentations has been truncated, see
Courier::Models::JourneyThrottleStaticNode for more details.
Throttle the journey by a static scope (user or global), allowing at most
max_allowed invocations per period.
|
# File 'lib/courier/models/journey_throttle_static_node.rb', line 39
|
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".
37
|
# File 'lib/courier/models/journey_throttle_static_node.rb', line 37
optional :conditions, union: -> { Courier::JourneyConditionsField }
|
#id ⇒ String?
29
|
# File 'lib/courier/models/journey_throttle_static_node.rb', line 29
optional :id, String
|
#max_allowed ⇒ Integer
9
|
# File 'lib/courier/models/journey_throttle_static_node.rb', line 9
required :max_allowed, Integer
|
#period ⇒ String
14
|
# File 'lib/courier/models/journey_throttle_static_node.rb', line 14
required :period, String
|
19
|
# File 'lib/courier/models/journey_throttle_static_node.rb', line 19
required :scope, enum: -> { Courier::JourneyThrottleStaticNode::Scope }
|
24
|
# File 'lib/courier/models/journey_throttle_static_node.rb', line 24
required :type, enum: -> { Courier::JourneyThrottleStaticNode::Type }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/courier/models/journey_throttle_static_node.rb', line 65
|
Instance Method Details
#to_hash ⇒ {
41
|
# File 'sig/courier/models/journey_throttle_static_node.rbs', line 41
def to_hash: -> {
|