Class: Replication::SdrObject

Inherits:
Moab::StorageObject
  • Object
show all
Defined in:
lib/replication/sdr_object.rb

Instance Method Summary collapse

Constructor Details

#initialize(druid) ⇒ SdrObject

Returns a new instance of SdrObject.



8
9
10
11
12
13
# File 'lib/replication/sdr_object.rb', line 8

def initialize(druid)
  @digital_object_id = druid
  storage_object = StorageServices.find_storage_object(druid, include_deposit=true)
  @object_pathname = storage_object.object_pathname
  @storage_root = storage_object.storage_root
end