app/models/print/cups_driver.rb
# Returns hash of print job statuses by job id.
Returns hash of print job statuses by job id.
Returns hash of print job statuses by job id .
def statuses(printer)
      Cups.all_jobs(printer.name).inject({}) do |memo, (job_number,cups_job)|
        memo[job_number] = convert_status(cups_job.fetch(:state))
        memo
      end
    end
def statuses ( printer ) Cups . all_jobs ( printer . name ) . inject ( { } ) do | memo , ( job_number , cups_job ) | memo [ job_number ] = convert_status ( cups_job . fetch ( :state ) ) memo end end
Returns hash of print job statuses by job id.
Returns hash of print job statuses by job id .
printer