Class: Umwelt::Episode::File::Store

Inherits:
Abstract::File::Store show all
Defined in:
lib/umwelt/episode/file/store.rb

Instance Method Summary collapse

Methods inherited from Abstract::File::Store

#initialize

Methods inherited from Abstract::Interactor

#prove

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