Sha256: ee067c5a28029d6b5ae4108dd8240fab0843bf5468d005698dd68694690a16c3

Contents?: true

Size: 409 Bytes

Versions: 4

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
module Sidekiq::Portal::JobRunner::Builder
  class << self
    # @param config [Sidekiq::Portal::Config]
    # @return [Sidekiq::Portal::JobRunner]
    #
    # @api private
    # @since 0.1.0
    def build(config)
      Sidekiq::Portal::JobRunner.new(
        config.settings.retry_count,
        config.settings.retry_on
      )
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq_portal-0.3.2 lib/portal/job_runner/builder.rb
sidekiq_portal-0.3.1 lib/portal/job_runner/builder.rb
sidekiq_portal-0.3.0 lib/portal/job_runner/builder.rb
sidekiq_portal-0.2.0 lib/portal/job_runner/builder.rb