Class: Privy::Models::AggregationWindow
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::AggregationWindow
- Defined in:
- lib/privy/models/aggregation_window.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#seconds ⇒ Integer
Duration of the rolling window in seconds (1-72 hours).
- #type ⇒ Symbol, Privy::Models::AggregationWindow::Type
Instance Method Summary collapse
-
#initialize(seconds:, type:) ⇒ Object
constructor
The time window configuration for an aggregation.
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(seconds:, type:) ⇒ Object
The time window configuration for an aggregation.
|
|
# File 'lib/privy/models/aggregation_window.rb', line 17
|
Instance Attribute Details
#seconds ⇒ Integer
Duration of the rolling window in seconds (1-72 hours).
10 |
# File 'lib/privy/models/aggregation_window.rb', line 10 required :seconds, Integer |
#type ⇒ Symbol, Privy::Models::AggregationWindow::Type
15 |
# File 'lib/privy/models/aggregation_window.rb', line 15 required :type, enum: -> { Privy::AggregationWindow::Type } |