sul-dlss/dor-services-app

View on GitHub
app/jobs/robots/robot.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
83%
# frozen_string_literal: true

module Robots
  # Base class for DSA robots.
  class Robot < LyberCore::Robot
    def cocina_object
      @cocina_object ||= CocinaObjectStore.find(druid)
    end

    def object_client
      raise 'Object Client should not be used from a DSA robot'
    end
  end
end