Class: Umwelt::Episode::File::Store
- Inherits:
-
Abstract::File::Store
- Object
- Abstract::Interactor
- Abstract::File::Store
- Umwelt::Episode::File::Store
- Defined in:
- lib/umwelt/episode/file/store.rb
Instance Method Summary collapse
Methods inherited from Abstract::File::Store
Methods inherited from Abstract::Interactor
Constructor Details
This class inherits a constructor from Umwelt::Abstract::File::Store
Instance Method Details
#call(id, struct) ⇒ Object
5 6 7 8 9 |
# File 'lib/umwelt/episode/file/store.rb', line 5 def call(id, struct) count = write(full_path(id), struct) @written_paths[full_path(id)] = count end |
#full_path(id) ⇒ Object
11 12 13 |
# File 'lib/umwelt/episode/file/store.rb', line 11 def full_path(id) umwelt_root_path / "episodes/#{id}.json" end |