Class: AcidicJob::RecoveryPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/acidic_job/recovery_point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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