Sha256: b5321262250a2aa3e3b2ff90620a249fcebad1431ef67d5dd0d971dc6d8ef82d

Contents?: true

Size: 310 Bytes

Versions: 9

Compression:

Stored size: 310 Bytes

Contents

module SayWhen
  module Triggers
    module Base

      attr_accessor :job

      def initialize(options={})
        @job = options.delete(:job)
      end

      def next_fire_at(time=nil)
        raise NotImplementedError.new('You need to implement next_fire_at in your strategy')
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
say_when-0.4.1 lib/say_when/triggers/base.rb
say_when-0.4.0 lib/say_when/triggers/base.rb
say_when-0.3.0 lib/say_when/triggers/base.rb
say_when-0.2.6 lib/say_when/triggers/base.rb
say_when-0.2.5 lib/say_when/triggers/base.rb
say_when-0.2.4 lib/say_when/triggers/base.rb
say_when-0.2.3 lib/say_when/triggers/base.rb
say_when-0.2.1 lib/say_when/triggers/base.rb
say_when-0.2.0 lib/say_when/triggers/base.rb