Sha256: f8afb37c851d560e805e4ef4e7862c802cfd0ecb764d40b4d1630fc6a9d36048

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

module AcidicJob
  class Entry < Record
    belongs_to :execution, class_name: "AcidicJob::Execution"

    def started?
      action == "started"
    end

    def succeeded?
      action == "succeeded"
    end

    def errored?
      action == "errored"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acidic_job-1.0.0.rc1 app/models/acidic_job/entry.rb