Sha256: 41a8545ca7f890d86e0074b22d6ca6510b521c4252034901628256995859bbcb

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

class CalculatorJob < ApplicationJob
  options queue_name: :calculator,
          ack: true,
          consumers: 5

  def initialize(number1:, number2:)
    @number1 = number1
    @number2 = number2
  end

  def run
    @number1 + @number2
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jobi-0.1.1 examples/demo_app/app/jobs/calculator_job.rb