Sha256: e8fc8f8acb55dc09d9c931f083a8abec2b0e758c76cdca48fc1c36ba1629c34a
Contents?: true
Size: 344 Bytes
Versions: 2
Compression:
Stored size: 344 Bytes
Contents
require 'jobi/utils' module Jobi class Message include Utils attr_reader :id, :job_class, :args, :started_at, :after_run def initialize(job_class:, args:, after_run: nil) @id = generate_job_id @job_class = job_class @args = args @started_at = Time.now.to_f @after_run = after_run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jobi-0.2.1 | lib/jobi/message.rb |
jobi-0.1.1 | lib/jobi/message.rb |