Class: Resizing::ActiveStorage::Service::ResizingService

Inherits:
ActiveStorage::Service
  • Object
show all
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

Constructor Details

#initializeResizingService

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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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