Class: Shrine

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Includes:
InstanceMethods
Defined in:
lib/shrine.rb,
lib/shrine/plugins.rb,
lib/shrine/version.rb,
lib/shrine/attacher.rb,
lib/shrine/attachment.rb,
lib/shrine/storage/s3.rb,
lib/shrine/plugins/model.rb,
lib/shrine/uploaded_file.rb,
lib/shrine/plugins/column.rb,
lib/shrine/plugins/entity.rb,
lib/shrine/plugins/sequel.rb,
lib/shrine/storage/linter.rb,
lib/shrine/storage/memory.rb,
lib/shrine/plugins/recache.rb,
lib/shrine/plugins/data_uri.rb,
lib/shrine/plugins/included.rb,
lib/shrine/plugins/tempfile.rb,
lib/shrine/plugins/versions.rb,
lib/shrine/plugins/mirroring.rb,
lib/shrine/plugins/rack_file.rb,
lib/shrine/plugins/signature.rb,
lib/shrine/plugins/delete_raw.rb,
lib/shrine/plugins/keep_files.rb,
lib/shrine/plugins/processing.rb,
lib/shrine/plugins/remote_url.rb,
lib/shrine/plugins/validation.rb,
lib/shrine/plugins/default_url.rb,
lib/shrine/plugins/derivatives.rb,
lib/shrine/plugins/form_assign.rb,
lib/shrine/plugins/multi_cache.rb,
lib/shrine/plugins/url_options.rb,
lib/shrine/storage/file_system.rb,
lib/shrine/plugins/_persistence.rb,
lib/shrine/plugins/activerecord.rb,
lib/shrine/plugins/add_metadata.rb,
lib/shrine/plugins/backgrounding.rb,
lib/shrine/plugins/rack_response.rb,
lib/shrine/plugins/atomic_helpers.rb,
lib/shrine/plugins/module_include.rb,
lib/shrine/plugins/remove_invalid.rb,
lib/shrine/plugins/upload_options.rb,
lib/shrine/plugins/default_storage.rb,
lib/shrine/plugins/dynamic_storage.rb,
lib/shrine/plugins/infer_extension.rb,
lib/shrine/plugins/instrumentation.rb,
lib/shrine/plugins/pretty_location.rb,
lib/shrine/plugins/type_predicates.rb,
lib/shrine/plugins/upload_endpoint.rb,
lib/shrine/plugins/presign_endpoint.rb,
lib/shrine/plugins/refresh_metadata.rb,
lib/shrine/plugins/store_dimensions.rb,
lib/shrine/plugins/download_endpoint.rb,
lib/shrine/plugins/remove_attachment.rb,
lib/shrine/plugins/validation_helpers.rb,
lib/shrine/plugins/derivation_endpoint.rb,
lib/shrine/plugins/determine_mime_type.rb,
lib/shrine/plugins/metadata_attributes.rb,
lib/shrine/plugins/restore_cached_data.rb,
lib/shrine/plugins/_urlsafe_serialization.rb,
lib/shrine/plugins/cached_attachment_data.rb

Overview

Core class that handles uploading files to specified storage.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Plugins, Storage, VERSION Classes: Attacher, Attachment, AttachmentChanged, DataFile, Derivation, DerivationEndpoint, DownloadEndpoint, Error, FileNotFound, InvalidFile, LintError, PresignEndpoint, RackFile, UploadEndpoint, UploadedFile, UrlSigner

Instance Attribute Summary

Attributes included from ClassMethods

#logger, #opts, #storages

Attributes included from InstanceMethods

#storage_key

Class Method Summary collapse

Methods included from ClassMethods

Attachment, deprecation, find_storage, inherited, plugin, upload, uploaded_file, warn, with_file

Methods included from InstanceMethods

#extract_metadata, #generate_location, #initialize, #opts, #storage, #upload

Class Method Details

.versionObject


4
5
6
# File 'lib/shrine/version.rb', line 4

def self.version
  Gem::Version.new VERSION::STRING
end