Sha256: 10bb77fc47f956c86b4a10ff4c25af6f4acdae695ec3bafdba9503cc9f44f4fd
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 Bytes
Contents
# Abstract class serving as an interface for concrete services. class ActiveStorage::Service class ActiveStorage::IntegrityError < StandardError; end def self.configure(service, **options) begin require "active_storage/service/#{service.to_s.downcase}_service" ActiveStorage::Service.const_get(:"#{service}Service").new(**options) rescue LoadError => e puts "Couldn't configure service: #{service} (#{e.message})" end end def upload(key, io, checksum: nil) raise NotImplementedError end def download(key) raise NotImplementedError end def delete(key) raise NotImplementedError end def exist?(key) raise NotImplementedError end def url(key, expires_in:, disposition:, filename:) raise NotImplementedError end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activestorage-0.1 | lib/active_storage/service.rb |