Sha256: c2aa3178181f896e149c633269345a504dff75867d82344da0a08e94e45c9eaf
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
module Caseflow class Fakes::S3Service cattr_accessor :files def self.store_file(filename, content, _type = :content) self.files ||= {} self.files[filename] = content end def self.fetch_file(filename, dest_filepath) self.files ||= {} File.open(dest_filepath, "wb") do |f| f.write(files[filename]) end end def self.fetch_content(filename) self.files ||= {} self.files[filename] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caseflow-0.1.5 | app/services/caseflow/fakes/s3_service.rb |