Sha256: 1e6abe66483bb4731f3e8ac406979f689818545ec34d7e2ad5cedd497a200d84
Contents?: true
Size: 343 Bytes
Versions: 21
Compression:
Stored size: 343 Bytes
Contents
class Jets::Job::Task < Jets::Lambda::Task attr_reader :state def initialize(class_name, meth, options={}) super @rate = options[:rate] @cron = options[:cron] @state = options[:state] || 'ENABLED' end def schedule_expression if @rate "rate(#{@rate})" elsif @cron "cron(#{@cron})" end end end
Version data entries
21 entries across 21 versions & 1 rubygems