Sha256: 43eadf9056b6e97b6398463dfcd2e5b6db493180fa0b9911426066b458708822
Contents?: true
Size: 467 Bytes
Versions: 8
Compression:
Stored size: 467 Bytes
Contents
# encoding: utf-8 require 'say_when/triggers/base' require 'say_when/cron_expression' module SayWhen module Triggers class CronStrategy include SayWhen::Triggers::Base attr_accessor :cron_expression def initialize(options = {}) super self.cron_expression = SayWhen::CronExpression.new(options) end def next_fire_at(time = nil) cron_expression.next_fire_at(time || Time.now) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems