lib/good_job/poller.rb in good_job-1.4.0 vs lib/good_job/poller.rb in good_job-1.4.1
- old
+ new
@@ -17,9 +17,12 @@
# @!scope class
# List of all instantiated Pollers in the current process.
# @return [array<GoodJob:Poller>]
cattr_reader :instances, default: [], instance_reader: false
+ # Creates GoodJob::Poller from a GoodJob::Configuration instance.
+ # @param configuration [GoodJob::Configuration]
+ # @return [GoodJob::Poller]
def self.from_configuration(configuration)
GoodJob::Poller.new(poll_interval: configuration.poll_interval)
end
# List of recipients that will receive notifications.