Class: Temporalio::Client::Schedule::Range
- Inherits:
-
Data
- Object
- Data
- Temporalio::Client::Schedule::Range
- Defined in:
- lib/temporalio/client/schedule.rb,
lib/temporalio/client/schedule.rb
Overview
Inclusive range for a schedule match value.
Instance Attribute Summary collapse
-
#finish ⇒ Integer
Inclusive end of the range.
-
#start ⇒ Integer
Inclusive start of the range.
-
#step ⇒ Integer
Step to take between each value.
Class Method Summary collapse
- ._original_new ⇒ Object
-
.new(start, finish = [0, start].max, step = 1) ⇒ Object
Create inclusive range.
Instance Attribute Details
#finish ⇒ Integer
Returns Inclusive end of the range. If unset or less than start, defaults to start.
669 670 671 |
# File 'lib/temporalio/client/schedule.rb', line 669 def finish @finish end |
#start ⇒ Integer
Returns Inclusive start of the range.
669 670 671 |
# File 'lib/temporalio/client/schedule.rb', line 669 def start @start end |
#step ⇒ Integer
Returns Step to take between each value. Defaults as 1.
669 670 671 |
# File 'lib/temporalio/client/schedule.rb', line 669 def step @step end |
Class Method Details
._original_new ⇒ Object
671 |
# File 'lib/temporalio/client/schedule.rb', line 671 alias _original_new new |
.new(start, finish = [0, start].max, step = 1) ⇒ Object
Create inclusive range.
678 679 680 681 682 683 684 |
# File 'lib/temporalio/client/schedule.rb', line 678 def new(start, finish = [0, start].max, step = 1) _original_new( # steep:ignore start:, finish:, step: ) end |