Class: AcidicJob::RecoveryPoint
- Inherits:
-
Object
- Object
- AcidicJob::RecoveryPoint
- Defined in:
- lib/acidic_job/recovery_point.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #call(run:) ⇒ Object
-
#initialize(name) ⇒ RecoveryPoint
constructor
A new instance of RecoveryPoint.
Constructor Details
#initialize(name) ⇒ RecoveryPoint
Returns a new instance of RecoveryPoint.
9 10 11 |
# File 'lib/acidic_job/recovery_point.rb', line 9 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/acidic_job/recovery_point.rb', line 7 def name @name end |
Instance Method Details
#call(run:) ⇒ Object
13 14 15 |
# File 'lib/acidic_job/recovery_point.rb', line 13 def call(run:) run.recover_to!(@name) end |