Class: Umwelt::History::File::Restore
- Inherits:
-
Abstract::File::Restore
- Object
- Abstract::Interactor
- Abstract::File::Restore
- Umwelt::History::File::Restore
- Defined in:
- lib/umwelt/history/file/restore.rb
Instance Method Summary collapse
- #call ⇒ Object
- #full_path ⇒ Object
-
#initialize(path: '.umwelt', mapper: Umwelt::History::Mapper) ⇒ Restore
constructor
A new instance of Restore.
Methods inherited from Abstract::Interactor
Constructor Details
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/umwelt/history/file/restore.rb', line 14 def call @struct = struct parse read full_path end |
#full_path ⇒ Object
18 19 20 |
# File 'lib/umwelt/history/file/restore.rb', line 18 def full_path umwelt_root_path / 'history.json' end |