class Resizing::ActiveStorage::Service::ResizingService
ref. github.com/rails/rails/blob/master/activestorage/lib/active_storage/service/s3_service.rb
rubocop:disable Lint/UnusedMethodArgument,Metrics/ParameterLists
Public Class Methods
new()
click to toggle source
def initialize(bucket:, upload: {}, public: false, **options)
# File lib/resizing/active_storage/service/resizing_service.rb, line 12 def initialize; end
Public Instance Methods
delete(_key)
click to toggle source
# File lib/resizing/active_storage/service/resizing_service.rb, line 26 def delete(_key) raise NotImplementedError, 'delete is not implemented' end
download(_key)
click to toggle source
# File lib/resizing/active_storage/service/resizing_service.rb, line 18 def download(_key) raise NotImplementedError, 'download is not implemented' end
download_chunk(_key, _range)
click to toggle source
# File lib/resizing/active_storage/service/resizing_service.rb, line 22 def download_chunk(_key, _range) raise NotImplementedError, 'download_chunk is not implemented' end
exist?(_key)
click to toggle source
# File lib/resizing/active_storage/service/resizing_service.rb, line 30 def exist?(_key) raise NotImplementedError, 'exist? is not implemented' end
headers_for_direct_upload(_key, content_type:, checksum:, filename: nil, disposition: nil, **)
click to toggle source
# File lib/resizing/active_storage/service/resizing_service.rb, line 38 def headers_for_direct_upload(_key, content_type:, checksum:, filename: nil, disposition: nil, **) raise NotImplementedError, 'headers_for_direct_upload is not implemented' end
upload(_key, _io, checksum: nil, filename: nil, content_type: nil, disposition: nil, **)
click to toggle source
# File lib/resizing/active_storage/service/resizing_service.rb, line 14 def upload(_key, _io, checksum: nil, filename: nil, content_type: nil, disposition: nil, **) raise NotImplementedError, 'upload is not implemented' end
url_for_direct_upload(_key, expires_in:, content_type:, conteont_length:, checksum:)
click to toggle source
# File lib/resizing/active_storage/service/resizing_service.rb, line 34 def url_for_direct_upload(_key, expires_in:, content_type:, conteont_length:, checksum:) raise NotImplementedError, 'url_for_direct_upload is not implemented' end
Private Instance Methods
private_url(_key, expires_in:, filename:, content_type:, disposition:, **)
click to toggle source
call from ActiveStorage::Service.url github.com/rails/rails/blob/master/activestorage/lib/active_storage/service.rb#L111
# File lib/resizing/active_storage/service/resizing_service.rb, line 46 def private_url(_key, expires_in:, filename:, content_type:, disposition:, **) raise NotImplementedError, 'private_url is not implemented' end
public_url(_key, filename:, content_type: nil, disposition: :attachment, **)
click to toggle source
# File lib/resizing/active_storage/service/resizing_service.rb, line 50 def public_url(_key, filename:, content_type: nil, disposition: :attachment, **) raise NotImplementedError, 'public_url is not implemented' end