Sha256: fff947b2140a0bd15fda389c9d8a187d4602c96cfb90fd61a36656d1f92a0424
Contents?: true
Size: 1.06 KB
Versions: 17
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true module Dor module Workflow module Response # Represents the status of an object doing a workflow process class Process # @params [Workflow] parent # @params [Hash] attributes def initialize(parent:, **attributes) @parent = parent @attributes = attributes end def name @attributes[:name].presence end def status @attributes[:status].presence end def datetime @attributes[:datetime].presence end def elapsed @attributes[:elapsed].presence end def attempts @attributes[:attempts].presence end def lifecycle @attributes[:lifecycle].presence end def note @attributes[:note].presence end def error_message @attributes[:errorMessage].presence end delegate :pid, :workflow_name, to: :parent private attr_reader :parent end end end end
Version data entries
17 entries across 17 versions & 2 rubygems