abstract class Shrine::Storage::Base
- Shrine::Storage::Base
- Reference
- Object
Direct Known Subclasses
Defined in:
shrine/storage/base.crInstance Method Summary
-
#clean(path : String)
cleans the path in the storage
- #clean? : Bool
-
#delete(id : String)
deletes the file from the storage
-
#exists?(id : String) : Bool
returns whether the file exists on storage
-
#open(id : String, **options) : IO
returns the remote file as an IO-like object
-
#upload(io : IO | UploadedFile, id : String, move = false, **options)
uploads
io
to the locationid
, can accept upload options -
#url(id : String, **options) : String
returns URL to the remote file, can accept URL options
Instance Method Detail
uploads io
to the location id
, can accept upload options
abstract
def url(id : String, **options) : String
#
returns URL to the remote file, can accept URL options