Class: CodexSDK::RolloutContextSnapshotReader
- Inherits:
-
Object
- Object
- CodexSDK::RolloutContextSnapshotReader
- Defined in:
- lib/codex_sdk/rollout_context_snapshot_reader.rb
Instance Method Summary collapse
-
#initialize(sessions_root:, started_at:) ⇒ RolloutContextSnapshotReader
constructor
A new instance of RolloutContextSnapshotReader.
- #read ⇒ Object
Constructor Details
#initialize(sessions_root:, started_at:) ⇒ RolloutContextSnapshotReader
Returns a new instance of RolloutContextSnapshotReader.
7 8 9 10 |
# File 'lib/codex_sdk/rollout_context_snapshot_reader.rb', line 7 def initialize(sessions_root:, started_at:) @sessions_root = sessions_root @started_at = started_at end |
Instance Method Details
#read ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/codex_sdk/rollout_context_snapshot_reader.rb', line 12 def read candidate_rollouts.reverse_each do |path| snapshot = read_rollout(path) return snapshot if snapshot end nil end |