module Dor

Creates RestClient::Resources with client ssl keys for various connections

Creates RestClient::Resources for various connections

Constants

Config
VERSION

Public Class Methods

configure(*args, &block) click to toggle source
# File lib/dor-services.rb, line 15
def configure(*args, &block)
  Dor::Config.configure *args, &block
end
find(pid, _opts = {}) click to toggle source

Load an object and inspect its identityMetadata to figure out what class to adapt it to. @param [String] pid The object's PID @return [Object] the ActiveFedora-modeled object

# File lib/dor-services.rb, line 23
def find(pid, _opts = {})
  Dor::Abstract.find pid, cast: true
end
logger() click to toggle source
# File lib/dor-services.rb, line 27
def logger
  require 'logger'
  @logger ||= if defined?(::Rails) && ::Rails.respond_to?(:logger)
                Rails.logger
              else
                Logger.new($stdout)
              end
end