Class: Temporalio::Client::Schedule::List::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/client/schedule.rb

Overview

Information about a listed schedule.

Instance Attribute Summary collapse

Instance Attribute Details

#next_action_timesArray<Time>

Returns Next scheduled action times. This may be a smaller amount than present on Info.next_action_times.

Returns:

  • (Array<Time>)

    Next scheduled action times. This may be a smaller amount than present on Info.next_action_times.



953
954
955
956
957
958
959
960
961
962
963
# File 'lib/temporalio/client/schedule.rb', line 953

class Info
  # @!visibility private
  def initialize(raw_info:)
    # steep:ignore:start
    super(
      recent_actions: raw_info.recent_actions.map { |a| ActionResult.new(raw_result: a) },
      next_action_times: raw_info.future_action_times.map { |t| Internal::ProtoUtils.timestamp_to_time(t) }
    )
    # steep:ignore:end
  end
end

#recent_actionsArray<ActionResult>

Returns Most recent actions, oldest first. This may be a smaller amount than present on Info.recent_actions.

Returns:

  • (Array<ActionResult>)

    Most recent actions, oldest first. This may be a smaller amount than present on Info.recent_actions.



953
954
955
956
957
958
959
960
961
962
963
# File 'lib/temporalio/client/schedule.rb', line 953

class Info
  # @!visibility private
  def initialize(raw_info:)
    # steep:ignore:start
    super(
      recent_actions: raw_info.recent_actions.map { |a| ActionResult.new(raw_result: a) },
      next_action_times: raw_info.future_action_times.map { |t| Internal::ProtoUtils.timestamp_to_time(t) }
    )
    # steep:ignore:end
  end
end