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.
641 642 643 |
# File 'lib/temporalio/client/schedule.rb', line 641 def initialize(every:, offset: nil) super end |
Instance Attribute Details
#every ⇒ Float
Returns Period to repeat the interval.
628 629 630 |
# File 'lib/temporalio/client/schedule.rb', line 628 def every @every end |
#offset ⇒ Float?
Returns Fixed offset added to each interval period.
628 629 630 |
# File 'lib/temporalio/client/schedule.rb', line 628 def offset @offset end |