Class: Postnhost::Translation::CategoryVariantJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Postnhost::Translation::CategoryVariantJob
- Defined in:
- app/jobs/postnhost/translation/category_variant_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(category_id, language_id) ⇒ Object
10 11 12 13 14 |
# File 'app/jobs/postnhost/translation/category_variant_job.rb', line 10 def perform(category_id, language_id) result = CategoryVariantTranslator.call(category_id:, language_id:) result.success? ? result : raise(StandardError, result.errors.to_sentence) end |