Class: WorkItems::ExportCsvService
- Inherits:
-
ExportCsv::BaseService
- Object
- ExportCsv::BaseService
- WorkItems::ExportCsvService
- Defined in:
- app/services/work_items/export_csv_service.rb
Constant Summary collapse
- NotAvailableError =
StandardError.new('This feature is currently behind a feature flag and it is not available.')
Constants inherited from ExportCsv::BaseService
ExportCsv::BaseService::TARGET_FILESIZE
Instance Method Summary collapse
Methods inherited from ExportCsv::BaseService
Constructor Details
This class inherits a constructor from ExportCsv::BaseService
Instance Method Details
#csv_data ⇒ Object
7 8 9 10 11 |
# File 'app/services/work_items/export_csv_service.rb', line 7 def csv_data raise NotAvailableError unless Feature.enabled?(:import_export_work_items_csv, resource_parent) super end |
#email(mail_to_user) ⇒ Object
13 14 15 |
# File 'app/services/work_items/export_csv_service.rb', line 13 def email(mail_to_user) Notify.export_work_items_csv_email(mail_to_user, resource_parent, csv_data, csv_builder.status).deliver_now end |