abstract class Shrine::Storage::Base

Direct Known Subclasses

Defined in:

shrine/storage/base.cr

Instance Method Summary

Instance Method Detail

abstract def clean(path : String) #

cleans the path in the storage


[View source]
def clean? : Bool #

[View source]
abstract def delete(id : String) #

deletes the file from the storage


[View source]
abstract def exists?(id : String) : Bool #

returns whether the file exists on storage


[View source]
abstract def open(id : String, **options) : IO #

returns the remote file as an IO-like object


[View source]
abstract def upload(io : IO | UploadedFile, id : String, move = false, **options) #

uploads io to the location id, can accept upload options


[View source]
abstract def url(id : String, **options) : String #

returns URL to the remote file, can accept URL options


[View source]