Class: Shrine::UploadedFile

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Includes:
InstanceMethods
Defined in:
lib/shrine/uploaded_file.rb

Overview

Core class that represents a file uploaded to a storage.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Instance Attribute Summary

Attributes included from ClassMethods

#shrine_class

Attributes included from InstanceMethods

#id, #metadata, #storage_key

Method Summary

Methods included from ClassMethods

inspect

Methods included from InstanceMethods

#==, #[], #as_json, #close, #data, #delete, #download, #eof?, #exists?, #extension, #hash, #initialize, #inspect, #mime_type, #open, #opened?, #original_filename, #read, #replace, #rewind, #shrine_class, #size, #storage, #stream, #to_io, #to_json, #uploader, #url