Class: Temporalio::Client::Schedule::Spec::Interval

Inherits:
Data
  • Object
show all
Defined in:
lib/temporalio/client/schedule.rb,
lib/temporalio/client/schedule.rb

Overview

Specification for scheduling on an interval.

Matches times expressed as epoch + (n * every) + offset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(every:, offset: nil) ⇒ Interval

Create an interval spec.

Parameters:

  • every (Float)

    Period to repeat the interval.

  • offset (Float, nil) (defaults to: nil)

    Fixed offset added to each interval period.



641
642
643
# File 'lib/temporalio/client/schedule.rb', line 641

def initialize(every:, offset: nil)
  super
end

Instance Attribute Details

#everyFloat

Returns Period to repeat the interval.

Returns:

  • (Float)

    Period to repeat the interval.



628
629
630
# File 'lib/temporalio/client/schedule.rb', line 628

def every
  @every
end

#offsetFloat?

Returns Fixed offset added to each interval period.

Returns:

  • (Float, nil)

    Fixed offset added to each interval period.



628
629
630
# File 'lib/temporalio/client/schedule.rb', line 628

def offset
  @offset
end