Sha256: b6f3bb16da5073b76664efa0e87617c1262360a8664ad4967ea0bf7e1bfea1b9
Contents?: true
Size: 1.14 KB
Versions: 9
Compression:
Stored size: 1.14 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 def lane_id @attributes[:laneId].presence end delegate :pid, :workflow_name, :repository, to: :parent private attr_reader :parent end end end end
Version data entries
9 entries across 9 versions & 1 rubygems