Class: SendFileToPrintHostJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- SendFileToPrintHostJob
- Defined in:
- app/jobs/send_file_to_print_host_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(print_host:, file:) ⇒ Object
5 6 7 8 |
# File 'app/jobs/send_file_to_print_host_job.rb', line 5 def perform(print_host:, file:) service = print_host.service service.upload(file: file, start_print: true) end |