lib/dor/services/client.rb in dor-services-client-2.6.0 vs lib/dor/services/client.rb in dor-services-client-2.6.1
- old
+ new
@@ -64,10 +64,15 @@
# @return [Dor::Services::Client::Objects] an instance of the `Client::Objects` class
def objects
@objects ||= Objects.new(connection: connection, version: DEFAULT_VERSION)
end
+ # @return [Dor::Services::Client::VirtualObjects] an instance of the `Client::VirtualObjects` class
+ def virtual_objects
+ @virtual_objects ||= VirtualObjects.new(connection: connection, version: DEFAULT_VERSION)
+ end
+
class << self
# @param [String] url
# @param [String] token a bearer token for HTTP auth
# @param [String] token_header ('Authorization') set this to something if you are also using
# basic auth, or the headers will collide
@@ -80,10 +85,10 @@
instance.connection = nil
self
end
- delegate :objects, :object, to: :instance
+ delegate :objects, :object, :virtual_objects, to: :instance
end
attr_writer :url, :token, :token_header, :connection
private