Class: Temporalio::Client::Schedule::List::Schedule
- Inherits:
-
Object
- Object
- Temporalio::Client::Schedule::List::Schedule
- Defined in:
- lib/temporalio/client/schedule.rb
Overview
Details for a listed schedule.
Instance Attribute Summary collapse
-
#action ⇒ Action
Action taken when scheduled.
-
#spec ⇒ Spec
When the action is taken.
-
#state ⇒ State
State of the schedule.
Instance Attribute Details
#action ⇒ Action
Returns Action taken when scheduled.
886 887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/temporalio/client/schedule.rb', line 886 class Schedule # @!visibility private def initialize(raw_info:) raise 'Unknown action on schedule' unless raw_info.workflow_type # steep:ignore:start super( action: Action::StartWorkflow.new(workflow: raw_info.workflow_type.name), spec: Spec._from_proto(raw_info.spec), state: State.new(raw_info:) ) # steep:ignore:end end end |
#spec ⇒ Spec
Returns When the action is taken.
886 887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/temporalio/client/schedule.rb', line 886 class Schedule # @!visibility private def initialize(raw_info:) raise 'Unknown action on schedule' unless raw_info.workflow_type # steep:ignore:start super( action: Action::StartWorkflow.new(workflow: raw_info.workflow_type.name), spec: Spec._from_proto(raw_info.spec), state: State.new(raw_info:) ) # steep:ignore:end end end |
#state ⇒ State
Returns State of the schedule.
886 887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/temporalio/client/schedule.rb', line 886 class Schedule # @!visibility private def initialize(raw_info:) raise 'Unknown action on schedule' unless raw_info.workflow_type # steep:ignore:start super( action: Action::StartWorkflow.new(workflow: raw_info.workflow_type.name), spec: Spec._from_proto(raw_info.spec), state: State.new(raw_info:) ) # steep:ignore:end end end |