Class: Temporalio::Client::Schedule::Spec::Interval
- Inherits:
-
Data
- Object
- Data
- Temporalio::Client::Schedule::Spec::Interval
- 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
-
#every ⇒ Float
Period to repeat the interval.
-
#offset ⇒ Float?
Fixed offset added to each interval period.
Instance Method Summary collapse
-
#initialize(every:, offset: nil) ⇒ Interval
constructor
Create an interval spec.
Constructor Details
#initialize(every:, offset: nil) ⇒ Interval
Create an interval spec.
650 651 652 |
# File 'lib/temporalio/client/schedule.rb', line 650 def initialize(every:, offset: nil) super end |
Instance Attribute Details
#every ⇒ Float
Returns Period to repeat the interval.
637 638 639 |
# File 'lib/temporalio/client/schedule.rb', line 637 def every @every end |
#offset ⇒ Float?
Returns Fixed offset added to each interval period.
637 638 639 |
# File 'lib/temporalio/client/schedule.rb', line 637 def offset @offset end |