Class: Privy::Models::RollingAggregationWindow

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/rolling_aggregation_window.rb,
sig/privy/models/rolling_aggregation_window.rbs

Defined Under Namespace

Modules: Type

Instance Attribute 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(seconds:, type:) ⇒ Object

A rolling time window defined by a duration in seconds.

Parameters:



# File 'lib/privy/models/rolling_aggregation_window.rb', line 17

Instance Attribute Details

#secondsInteger

Duration of the rolling window in seconds (1-72 hours).

Parameters:

  • value (Integer)

Returns:

  • (Integer)


10
# File 'lib/privy/models/rolling_aggregation_window.rb', line 10

required :seconds, Integer

#typeSymbol, Privy::Models::RollingAggregationWindow::Type

Parameters:

  • value (Privy::Models::RollingAggregationWindow::type_)

Returns:



15
# File 'lib/privy/models/rolling_aggregation_window.rb', line 15

required :type, enum: -> { Privy::RollingAggregationWindow::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


16
# File 'sig/privy/models/rolling_aggregation_window.rbs', line 16

def to_hash: -> {