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.
910 911 912 913 914 915 916 917 918 919 920 921 922 923 |
# File 'lib/temporalio/client/schedule.rb', line 910 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.
910 911 912 913 914 915 916 917 918 919 920 921 922 923 |
# File 'lib/temporalio/client/schedule.rb', line 910 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.
910 911 912 913 914 915 916 917 918 919 920 921 922 923 |
# File 'lib/temporalio/client/schedule.rb', line 910 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 |