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