module SayWhen::Triggers::Base
Attributes
job[RW]
Public Class Methods
new(options = {})
click to toggle source
# File lib/say_when/triggers/base.rb, line 8 def initialize(options = {}) self.job = options.delete(:job) raise ArgumentError.new("job must be provided to create a trigger") unless job end
Public Instance Methods
next_fire_at(time = nil)
click to toggle source
# File lib/say_when/triggers/base.rb, line 13 def next_fire_at(time = nil) raise NotImplementedError.new('You need to implement next_fire_at in your strategy') end