Class: Resizing::ActiveStorage::Service::ResizingService
- Inherits:
-
ActiveStorage::Service
- Object
- ActiveStorage::Service
- Resizing::ActiveStorage::Service::ResizingService
- Defined in:
- lib/resizing/active_storage/service/resizing_service.rb
Overview
ref. github.com/rails/rails/blob/master/activestorage/lib/active_storage/service/s3_service.rb
rubocop:disable Lint/UnusedMethodArgument,Metrics/ParameterLists
Instance Method Summary collapse
- #delete(_key) ⇒ Object
- #download(_key) ⇒ Object
- #download_chunk(_key, _range) ⇒ Object
- #exist?(_key) ⇒ Boolean
- #headers_for_direct_upload(_key, content_type:, checksum:, filename: nil, disposition: nil) ⇒ Object
-
#initialize ⇒ ResizingService
constructor
def initialize(bucket:, upload: {}, public: false, **options).
- #upload(_key, _io, checksum: nil, filename: nil, content_type: nil, disposition: nil) ⇒ Object
- #url_for_direct_upload(_key, expires_in:, content_type:, conteont_length:, checksum:) ⇒ Object
Constructor Details
#initialize ⇒ ResizingService
def initialize(bucket:, upload: {}, public: false, **options)
12 |
# File 'lib/resizing/active_storage/service/resizing_service.rb', line 12 def initialize; end |
Instance Method Details
#delete(_key) ⇒ Object
26 27 28 |
# File 'lib/resizing/active_storage/service/resizing_service.rb', line 26 def delete(_key) raise NotImplementedError, 'delete is not implemented' end |
#download(_key) ⇒ Object
18 19 20 |
# 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) ⇒ Object
22 23 24 |
# 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) ⇒ Boolean
30 31 32 |
# 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) ⇒ Object
38 39 40 |
# 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) ⇒ Object
14 15 16 |
# 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:) ⇒ Object
34 35 36 |
# 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 |