Class: Temporalio::Client::Schedule::List::Description
- Inherits:
-
Object
- Object
- Temporalio::Client::Schedule::List::Description
- Defined in:
- lib/temporalio/client/schedule.rb
Overview
Description of a listed schedule.
Instance Attribute Summary collapse
-
#id ⇒ String
ID of the schedule.
-
#info ⇒ Info?
Information about the schedule.
-
#raw_entry ⇒ Api::Schedule::V1::ScheduleListEntry
Raw description of the schedule.
-
#schedule ⇒ Schedule?
Schedule details that can be mutated.
Instance Method Summary collapse
-
#memo ⇒ Hash<String, Object>?
Memo for the schedule, converted lazily on first call.
-
#search_attributes ⇒ Search attributes?
Search attributes for the schedule, converted lazily on first call.
Instance Attribute Details
#id ⇒ String
Returns ID of the schedule.
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/temporalio/client/schedule.rb', line 870 class Description # @!visibility private def initialize(raw_entry:, data_converter:) @memo = Internal::ProtoUtils::LazyMemo.new(raw_entry.memo, data_converter) @search_attributes = Internal::ProtoUtils::LazySearchAttributes.new(raw_entry.search_attributes) # steep:ignore:start super( id: raw_entry.schedule_id, schedule: (Schedule.new(raw_info: raw_entry.info) if raw_entry.info), info: (Info.new(raw_info: raw_entry.info) if raw_entry.info), raw_entry: ) # steep:ignore:end end # @return [Hash<String, Object>, nil] Memo for the schedule, converted lazily on first call. def memo @memo.get end # @return [Search attributes, nil] Search attributes for the schedule, converted lazily on first call. def search_attributes @search_attributes.get end end |
#info ⇒ Info?
Returns Information about the schedule. This may not be present in older Temporal servers without advanced visibility.
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/temporalio/client/schedule.rb', line 870 class Description # @!visibility private def initialize(raw_entry:, data_converter:) @memo = Internal::ProtoUtils::LazyMemo.new(raw_entry.memo, data_converter) @search_attributes = Internal::ProtoUtils::LazySearchAttributes.new(raw_entry.search_attributes) # steep:ignore:start super( id: raw_entry.schedule_id, schedule: (Schedule.new(raw_info: raw_entry.info) if raw_entry.info), info: (Info.new(raw_info: raw_entry.info) if raw_entry.info), raw_entry: ) # steep:ignore:end end # @return [Hash<String, Object>, nil] Memo for the schedule, converted lazily on first call. def memo @memo.get end # @return [Search attributes, nil] Search attributes for the schedule, converted lazily on first call. def search_attributes @search_attributes.get end end |
#raw_entry ⇒ Api::Schedule::V1::ScheduleListEntry
Returns Raw description of the schedule.
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/temporalio/client/schedule.rb', line 870 class Description # @!visibility private def initialize(raw_entry:, data_converter:) @memo = Internal::ProtoUtils::LazyMemo.new(raw_entry.memo, data_converter) @search_attributes = Internal::ProtoUtils::LazySearchAttributes.new(raw_entry.search_attributes) # steep:ignore:start super( id: raw_entry.schedule_id, schedule: (Schedule.new(raw_info: raw_entry.info) if raw_entry.info), info: (Info.new(raw_info: raw_entry.info) if raw_entry.info), raw_entry: ) # steep:ignore:end end # @return [Hash<String, Object>, nil] Memo for the schedule, converted lazily on first call. def memo @memo.get end # @return [Search attributes, nil] Search attributes for the schedule, converted lazily on first call. def search_attributes @search_attributes.get end end |
#schedule ⇒ Schedule?
Returns Schedule details that can be mutated. This may not be present in older Temporal servers without advanced visibility.
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/temporalio/client/schedule.rb', line 870 class Description # @!visibility private def initialize(raw_entry:, data_converter:) @memo = Internal::ProtoUtils::LazyMemo.new(raw_entry.memo, data_converter) @search_attributes = Internal::ProtoUtils::LazySearchAttributes.new(raw_entry.search_attributes) # steep:ignore:start super( id: raw_entry.schedule_id, schedule: (Schedule.new(raw_info: raw_entry.info) if raw_entry.info), info: (Info.new(raw_info: raw_entry.info) if raw_entry.info), raw_entry: ) # steep:ignore:end end # @return [Hash<String, Object>, nil] Memo for the schedule, converted lazily on first call. def memo @memo.get end # @return [Search attributes, nil] Search attributes for the schedule, converted lazily on first call. def search_attributes @search_attributes.get end end |
Instance Method Details
#memo ⇒ Hash<String, Object>?
Returns Memo for the schedule, converted lazily on first call.
886 887 888 |
# File 'lib/temporalio/client/schedule.rb', line 886 def memo @memo.get end |
#search_attributes ⇒ Search attributes?
Returns Search attributes for the schedule, converted lazily on first call.
891 892 893 |
# File 'lib/temporalio/client/schedule.rb', line 891 def search_attributes @search_attributes.get end |