Sha256: e6955d3632f16f4833dfcea8966ab7a8d93af8f441fa09d7dfb7abc9c28131f2

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

require "rails"

module ActiveJob
  module Cron
    module Configurable
      def configure
        yield(config)
      end

      def config
        @config ||= Configuration.new
      end
    end
    class Configuration
      attr_accessor :resolution, :utc, :handler_pool_size, :logger, :preload_jobs

      def initialize
        @resolution = 1
        @utc = false
        @preload_jobs = true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_job-cron-0.1.0 lib/active_job/cron/configuration.rb