Sha256: ff60fe3c5c1525b5203e85f53c5789d6f0c9caff89130fdd01aa64c5fae0222d
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true module Umwelt::Episode::File class Store < Umwelt::Abstract::File::Store def call(id, struct) full_path(id).dirname.mkpath full_path(id).write serialize(destruct(struct)) end def full_path(id) umwelt_root_path / "episodes/#{id}.json" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
umwelt-0.1.1 | lib/umwelt/episode/file/store.rb |