Sha256: 4dc0dfe249f766308ec017fc47619e46d73bb9c15301c0437a38a2b69a260ce6
Contents?: true
Size: 1.07 KB
Versions: 13
Compression:
Stored size: 1.07 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, :repository, to: :parent private attr_reader :parent end end end end
Version data entries
13 entries across 13 versions & 1 rubygems