Websites/app/logical/storage_manager/null.rb

30 lines
338 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module StorageManager
class Null
def delete(_path)
# noop
end
def exists?(_path)
false
end
def get(_path)
nil
end
def put(_path, _io)
# noop
end
def upload(_path, _body)
nil
end
def url_for(_entry)
nil
end
end
end