Class: ActiveAdmin::AsyncExporter::Services::StorageService

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/async_exporter/services/storage_service.rb

Class Method Summary collapse

Class Method Details

.call(*args) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/active_admin/async_exporter/services/storage_service.rb', line 9

def self.call(*args)
  case ActiveAdmin::AsyncExporter.config.service
  when :amazon
    Services::AwsS3Service.new(*args)
  else
    Services::DiskService.new(*args)
  end
end