Sha256: 9e7567b8faddbe51d353a2e6970543a3f5f013401af92b8784b9c6563b2d7c5a
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
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={}) @cron_expression = SayWhen::CronExpression.new(options) end def next_fire_at(time=Time.now) cron_expression.next_fire_at(time) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
say_when-0.1.0 | lib/say_when/triggers/cron_strategy.rb |