Class: GraphAgent::Checkpoint::CheckpointTuple
- Inherits:
-
Data
- Object
- Data
- GraphAgent::Checkpoint::CheckpointTuple
- Defined in:
- lib/graph_agent/checkpoint/base_saver.rb
Instance Attribute Summary collapse
-
#checkpoint ⇒ Object
readonly
Returns the value of attribute checkpoint.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#parent_config ⇒ Object
readonly
Returns the value of attribute parent_config.
-
#pending_writes ⇒ Object
readonly
Returns the value of attribute pending_writes.
Instance Method Summary collapse
-
#initialize(config:, checkpoint:, metadata: nil, parent_config: nil, pending_writes: []) ⇒ CheckpointTuple
constructor
A new instance of CheckpointTuple.
Constructor Details
#initialize(config:, checkpoint:, metadata: nil, parent_config: nil, pending_writes: []) ⇒ CheckpointTuple
Returns a new instance of CheckpointTuple.
6 7 8 |
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 6 def initialize(config:, checkpoint:, metadata: nil, parent_config: nil, pending_writes: []) super end |
Instance Attribute Details
#checkpoint ⇒ Object (readonly)
Returns the value of attribute checkpoint
5 6 7 |
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5 def checkpoint @checkpoint end |
#config ⇒ Object (readonly)
Returns the value of attribute config
5 6 7 |
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5 def config @config end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
5 6 7 |
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5 def @metadata end |
#parent_config ⇒ Object (readonly)
Returns the value of attribute parent_config
5 6 7 |
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5 def parent_config @parent_config end |
#pending_writes ⇒ Object (readonly)
Returns the value of attribute pending_writes
5 6 7 |
# File 'lib/graph_agent/checkpoint/base_saver.rb', line 5 def pending_writes @pending_writes end |